Skip to content

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Brain games

Is a set of five console games to pump your brain. Each game asks questions to which you have to give correct answers. After three correct answers, the game is considered to be completed. Incorrect answers end the game and offer to go through it again.

Installation:

How to install:

git clone git@github.com:dven-dev/frontend-project-44.git
cd frontend-project-44
make install

Description:

Game: Even or Odd

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

Command to run game: brain-even

asciicast

Game: Calculator

The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.

Command to run game: brain-calc

asciicast

Game: Greatest Common Divisor

The user is shown two random numbers, for example 25 50. The user must calculate and enter the greatest common divisor of these numbers.

Command to run game: brain-gcd

asciicast

Game: Arithmetic progression

The user is shown a series of numbers forming an arithmetic progression, replacing any of the numbers with two dots. The player must determine this number.

Command to run game: brain-progression

asciicast

Game: Is it a prime number?

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

Command to run game: brain-prime

asciicast

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages