Skip to content

It's collection of five console mathematical games. Each game has 3 questions that must be answered correctly or the game will end and you will be asked to start again

Notifications You must be signed in to change notification settings

ElisabethFox/Brain-Games

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability

"Brain Games" is a collection of five console games for brain-pumping. 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 offer to go through it again.

BrainGames-img

For use this programm install Node.js of the latest version on the system globally. Upgrade Node.js to the latest version.

How to use it?

  1. git clone git@github.com:ElisabethFox/Brain-Games.git
  2. npm ci
  3. Start every game, which you choose, with command:
  • brain-even
  • brain-calc
  • brain-gcd
  • brain-progression
  • brain-prime

Brain-even. The user is shown a random number, he should answer 'yes' if the number is even, or 'no' if it is odd.

asciicast

Brain-calc. The user is shown a mathematical expression, he should give the correct answer.

asciicast

Brain-gcd. The user is shown two random numbers, he should calculate and enter the greatest common divisor of these numbers.

asciicast

Brain-progression. The user is shown a series of numbers that form an arithmetic progression, but one element. He should calculate this element.

asciicast

Brain-prime. The user is shown a random number, he should answer 'yes' if the number is prime, or 'no' if it is complex.

asciicast

Minimum system requirements:

• MacOS/Linux • Windows + WSL • node.js v16.0.0.

About

It's collection of five console mathematical games. Each game has 3 questions that must be answered correctly or the game will end and you will be asked to start again

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published