Brain Games
Small logic games involving basic arithmetical operations and number properties. Each game consists of up to 3 rounds.
This is an educational project implemented during https://hexlet.io courses aimed at setting up the environment, getting familiar with some best practices and creating a good simple architecture.
Installation
- Install PHP 7.2+ and Composer.
- Run
composer global require alexp11223/brain-games
. - Make sure that the Composer global bin dir (
composer global config bin-dir --absolute
) is in yourPATH
.
Usage
Run the following games:
brain-even
brain-calc
brain-gcd
brain-progression
brain-prime
brain-even
Answer whether the given number is even.
brain-calc
Enter the result of the arithmetic expression.
brain-gcd
Find the greatest common divisor of two numbers.
brain-progression
Enter the number missing in the arithmetic progression.
brain-prime
Answer whether the given number is prime.