Skip to content

HaimOzer/frontend-project-44

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability

Brain Games

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. Icon

System Requirements

  1. Node.js
  2. Terminal
  3. MacOS/Linux

Installation

To install Brain Games, you will need Node.js.

Follow these steps:

  1. Install Node.js if you don't have it already from the official Node.js website.

  2. Clone the repository

    git clone git @github:HaimOzer/frontend-project-44.git
  3. Navigate to the project's root directory:

    cd frontend-project-44
  4. Create a link between global and local packages:

    npm link

Usage

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!

List of Games and Descriptions

Brain Even

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

Brain Calc

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

Brain GCD

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

Brain Progression

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

Brain Prime

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 

License

This project is distributed under the ISC license.

Author

Alexander Zuev - GitHub