Hexlet tests and linter status:

Actions Status Maintainability Node CI

Description:

"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!

Setup:

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*.

Game list:

  1. brain-games - game with introduction
  2. brain-even - check the number for parity
  3. brain-calc - calculate expressions
  4. brain-gcd - сalculate the greatest common divisor of the numbers
  5. brain-progression - calculate the missing number from an arithmetic progression
  6. brain-prime - check if the number is prime

Games overviews:

brain-even asciinema asciicast

brain-calc asciinema asciicast

brain-gcd asciinema asciicast

brain-progression asciinema asciicast

brain-prime asciinema asciicast