Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.75 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.75 KB

frontend-project-44

Brain-games is a simple set of terminal mini-games.

Requirements:

Node-JS 13.2.0 or higher

How to install games:

Open console and execute:

To clone repository:

git clone https://github.com/RainZerg/frontend-project-44

To install project:

make install
make publish
npm link

Now you can play

Type the name of the game and press Enter!

Rules:

brain-even - user is shown a random number. And he needs to answer yes if the number is even, or no if it is odd;

brain-calс - user is shown a random mathematical expression, for example 35 + 16, which needs to be calculated and written down the correct answer;

brain-gcd - two random numbers are shown to the user, for example, 25 50. The user must calculate and enter the largest common divisor of these numbers;

brain-progression - the player is shown a series of numbers forming an arithmetic progression in which one of the numbers is replaced by two points. The player must determine this number;

brain-prime - user is shown a random number. And he needs to answer yes if the number is prime, or no if not.

Hexlet tests and linter status:

Actions Status Maintainability

Asciinema for running brain-even game: Asciinema for running brain-calc game: Asciinema for running brain-gcd game: Asciinema for running brain-progression game: Asciinema for running brain-prime game: