ticktick / hexlet-php-project-1
Solution fo Hexlet Brain Games project
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- squizlabs/php_codesniffer: ^3.5
- wp-cli/php-cli-tools: ^0.11
README
A set of command line math games:
- brain-games - you should answer if the number is even or not
- brain-calc - you should calculate the result of math expression
- brain-gcd - you should calculate the greatest common divisor for given numbers
- brain-progression - you should find a missed element from the arithmetic progression
- brain-prime - you should answer if the number is prime or not
Installation
composer global require ticktick/hexlet-php-project-1
Make sure ~/.composer/vendor/bin is in PATH, if you want to run games globally
export PATH="$PATH:$HOME/.composer/vendor/bin"
Installation & Brain-games example
$ brain-games
Brain-calc example
$ brain-calc
Brain-gcd example
$ brain-gcd
Brain-progression example
$ brain-progression
Brain-prime example
$ brain-prime