Skip to content

elen-oz/brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Project description

Brain Games is a collection of five mini-games designed to challenge the user's mental agility. Each game begins with a greeting, personalized with the user's name, and consists of three rounds.

Games

  • Brain Even: The game asks the user to determine if a number is even.
  • Brain Calc: The game presents an arithmetic operation (addition, subtraction, multiplication) on two numbers and asks the user to calculate the result.
  • Brain GCD: The game asks the user to find the greatest common divisor of two numbers.
  • Brain Progression: The game presents an arithmetic progression with one number missing and asks the user to identify the missing number.
  • Brain Prime: The game asks the user to determine if a number is prime.

Game preview:

  1. Brain-even:

    asciicast

  2. Brain-calc:

    asciicast

  3. Brain-gcd:

    asciicast

  4. Brain-progression:

    asciicast

  5. Brain-prime:

    asciicast

Installation

Before you start, make sure you have Node.js and npm installed on your machine.

  1. Clone this repository to your local machine using https://github.com/elen-oz/brain-games.git
  2. Navigate to the project directory: cd brain-games
  3. Install all required dependencies with npm install

Usage

To run a game, use the command npm run [game-name]. Replace [game-name] with the name of the game you want to play (e.g., brain-even, brain-calc, etc.).

About

The first project on the Hexlet platform for the front-end development programme

Topics

Resources

Stars

Watchers

Forks