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.
- 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
.
Run the following games:
brain-even
brain-calc
brain-gcd
brain-progression
brain-prime
Answer whether the given number is even.
Enter the result of the arithmetic expression.
Find the greatest common divisor of two numbers.
Enter the number missing in the arithmetic progression.
Answer whether the given number is prime.