A set of five console games, built on the principle of popular mobile brain training apps
$ git clone https://github.com/algins/php-project-lvl1.git
$ cd php-project-lvl1
$ make install
Random number is shown. Player needs to answer "yes" if the number is even, or "no" otherwise.
Run game:
$ brain-even
Random mathematical expression is shown. Player needs to calculate and answer the correct result.
Run game:
$ brain-calc
Two random numbers are shown. Player needs to calculate and answer the GCD of these numbers.
Run game:
$ brain-gcd
List of random numbers that forms arithmetical progression is shown. One number is replaced with dots. Player needs to determine and answer this number.
Run game:
$ brain-progression
Random number is shown. Player needs to answer "yes" if the number is prime, or "no" otherwise.
Run game:
$ brain-prime