li0n0k / brain-games
Project 1 from Hexlet
v1.0.11
2018-11-29 14:48 UTC
Requires
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: *
- squizlabs/php_codesniffer: *
README
Project Brain games on Hexlet
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!