Brain Games is a set of console mini-games designed to train your mind.
The project was developed as part of the "Frontend JavaScript" course at Hexlet.io.
- Node.js
- Terminal
- MacOS/Linux
To install Brain Games, you will need Node.js.
Follow these steps:
-
Install Node.js if you don't have it already from the official Node.js website.
-
Clone the repository
git clone git @github:HaimOzer/frontend-project-44.git
-
Navigate to the project's root directory:
cd frontend-project-44
-
Create a link between global and local packages:
npm link
Brain Games include several interesting games.
You can run them by executing the corresponding command.
For example, to play the "Brain Even" game, run:
brain-even
Play and enjoy!
The essence of the game is as follows: you are shown a random number. You need to answer "yes" if the number is even or "no" if it's odd.
To start the game, use the command:
brain-even
The essence of the game is as follows: you are shown a random mathematical expression, for example, 35 + 16, which you need to calculate and provide the correct answer.
To start the game, use the command:
brain-calc
The essence of the game is as follows: you are shown two random numbers, for example, 25 and 50. You need to calculate and enter the greatest common divisor of these numbers.
To start the game, use the command:
brain-gcd
The essence of the game is as follows: you are shown a series of numbers forming an arithmetic progression, where one number is replaced by two dots. Your task is to identify this number and enter it.
To start the game, use the command:
brain-progression
The essence of the game is as follows: you are shown a number. You need to answer "yes" if the number is prime or "no" if it's not.
Reminder: a prime number is one that is divisible only by 1 and itself.
To start the game, use the command:
brain-prime
This project is distributed under the ISC license.
Alexander Zuev - GitHub