Brain Games is a 5 console games:
-
'brain-even'. You should answer, is number even or not.
-
'brain-calc'. Find the result of expression.
-
'brain-gcd'. Find the greatest common divisor (GCD) of two numbers.
-
'brain-progression'. Wright the missed number in progression.
-
'brain-prime'. Answer the question 'Is given number is prime?'.
-
PHP 7 and more.
-
Composer (global installed).
$ git clone https://github.com/archi0619/php-project-lvl1.git
$ cd php-project-lvl1
$ make install
Use comman 'make' with name of the game, for example:
$ make brain-even
$ make brain-calc
Or use command:
./bin/name_of_the_game