Is a set of five console games to pump your brain. Each game asks questions to which you have to give correct answers. After three correct answers, the game is considered to be completed. Incorrect answers end the game and offer to go through it again.
How to install:
git clone git@github.com:dven-dev/frontend-project-44.git
cd frontend-project-44
make install
The user is shown a random number. And he needs to answer yes if the number is even, or no if it is odd.
Command to run game: brain-even
The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.
Command to run game: brain-calc
The user is shown two random numbers, for example 25 50. The user must calculate and enter the greatest common divisor of these numbers.
Command to run game: brain-gcd
The user is shown a series of numbers forming an arithmetic progression, replacing any of the numbers with two dots. The player must determine this number.
Command to run game: brain-progression
The user is shown a random number. And he needs to answer yes if the number is prime, or no if it is not prime.
Command to run game: brain-prime