dr-krokdi / php-project-lvl1
Brain Games
dev-main
2022-07-24 19:22 UTC
Requires
- wp-cli/php-cli-tools: ^0.11.13
Requires (Dev)
- phpstan/phpstan: ^1.7
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-04-24 22:52:49 UTC
README
Hexlet tests and linter status:
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?'.
Requirements:
-
PHP 7 and more.
-
Composer (global installed).
Setup
$ git clone https://github.com/archi0619/php-project-lvl1.git
$ cd php-project-lvl1
$ make install
Start game:
Use comman 'make' with name of the game, for example:
$ make brain-even $ make brain-calc
Or use command:
./bin/name_of_the_game