li0n0k/brain-games

Project 1 from Hexlet

v1.0.11 2018-11-29 14:48 UTC

This package is auto-updated.

Last update: 2024-04-29 03:57:32 UTC


README

Project Brain games on Hexlet

68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343838366261633837393464643138613436642f6d61696e7461696e6162696c697479 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343838366261633837393464643138613436642f746573745f636f766572616765 68747470733a2f2f7472617669732d63692e6f72672f6c696f6e306b2f70726f6a6563742d6c766c312d733338342e7376673f6272616e63683d6d6173746572

Descriptions games

All mini-games ask you 3 questions. Your challenge is to answer all questions correctly.

  • brain-even - specify if the number is even or not, using only yes or no.
  • brain-calc - find a solution to a mathematical expression, like 2 * 9
  • brain-gcd - find the greatest common divisor of two numbers, like (55, 40) = 5
  • brain-progression - You are given an arithmetic progression, for example, 8 12 16 20 .. 28 32 36 40 44. You must find the missing number of the sequence.
  • brain-prime - specify if the number is prime or not, using only yes or no.

Installation and usage

1) composer global require li0n0k/brain-games
2) Add in your PATH - $HOME/.composer/vendor/bin
3) Run for example brain-even
4) Enjoy!

Example installation and play

68747470733a2f2f61736369696e656d612e6f72672f612f7745584e6548684b73726e3351695a55516d714d6469746c302e737667