Skip to content

nokrepilov/frontend-project-44

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability

Brain Games

Brain Games is a set of five console games. Each game asks questions that need to be answered. After three correct answers, the game is considered to be completed. Incorrect results end the game and offer to play it again. To exit a game simply run CTRL + C.

Installation

Prerequisites: Node.js

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

cd frontend-project-44

make install

npm link

Games

Parity check

Answer 'yes' if given number is even and 'no' if this number is odd. To start the game:

brain-even

Recording session Even Game:

https://asciinema.org/a/mdw3kdWwlKM7KKzxSedpukeWT

Calculator

You need to calculate a rundom mathematical expression and give the result. To start the game:

brain-calc

Recording session Calc Game:

https://asciinema.org/a/7X4lmREPj9bxNOvjpGAnjzvFT

Greatest common divisor

You need to find greatest common divisor of two random number. To start the game:

brain-gcd

Recording session GCD Game:

https://asciinema.org/a/PXQYAgmUGZSm9WjWTh8ewtCHL

Arithmetic progression

You need to find the missing number at random series of numbers that form an arithmetic progression. To start the game:

brain-progression

Recording session Progression Game:

https://asciinema.org/a/SmScJouuyl2T5M3bnIXDH8183

Is this a prime number?

Answer 'yes' if given number is prime and 'no' if it is not. To start the game: brain-prime

Recording session Prime Game:

https://asciinema.org/a/8h7MhrYWmEVlj7HHeoXfeZOjO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published