This is a set of five console games based on popular mobile brain training apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.
- Calculator. Arithmetic expressions to be evaluated.
- Progression. Finding missing numbers in a sequence of numbers.
- Definition of an even number.
- Finding the Greatest Common Divisor.
- Definition of a prime number.
This pet-project was created as part of the Hexlet curriculum.
- Node (v.13+)
git clone https://github.com/dmytro-komlyk/brain-games.git
cd brain-games/
make install
make link
The user is shown a random number. And he needs to answer yes if the number is even, or no if it is odd.
launch: $ brain-even
The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.
launch: $ 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.
launch: $ brain-gcd
Пользователю показывается ряд чисел, образующий арифметическую прогрессию, заменив любое из чисел двумя точками. Игрок должен определить это число.
launch: $ brain-progression
The user is shown a random number. And he needs to answer yes if the number is prime, or no if not.
launch: $ brain-prime