"Mind Games" is a set of five console games based on the popular mobile brain-pumping apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered completed. Incorrect answers end the game and prompt you to play it again.
Example game:
brain-progression
Welcome to the Brain Game!
What number is missing in this progression?
May I have your name? Roman
Hello, Roman!
Question: 14 .. 18 20 22 24 26 28
Your answer: 16 # Пользователь вводит ответ
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10 # Пользователь вводит ответ
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24 # Пользователь вводит ответ
Correct!
Congratulations, Roman!
Before you start the games, do the following:
- Сheck for Node.js: enter command line
node -v
. - Install Node.js package: enter command line
brew install node
. - The npm is installed with Node.js by default. Сheck for npm: enter command line
npm -v
. - Upgrade Node.js to the latest version: enter command line
brew upgrade node
. - Clone this repository by SSH key:
git@github.com:blalina/frontend-project-lvl1.git
. - Add and check depencies: enter command line
make install
. - Run games: enter command line
make *game name*
.
- brain-games - game with introduction
- brain-even - check the number for parity
- brain-calc - calculate expressions
- brain-gcd - сalculate the greatest common divisor of the numbers
- brain-progression - calculate the missing number from an arithmetic progression
- brain-prime - check if the number is prime