elen-oz/frontend-project-lvl1

View on GitHub
README.md

Summary

Maintainability
Test Coverage
### Hexlet tests and linter status:

[![Actions Status](https://github.com/elen-oz/frontend-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/elen-oz/frontend-project-lvl1/actions)

[![Maintainability](https://api.codeclimate.com/v1/badges/6922be521c7684d6c6c9/maintainability)](https://codeclimate.com/github/elen-oz/frontend-project-lvl1/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](https://asciinema.org/a/VNFIBdm8W7BodG337UWChzyR9.svg)](https://asciinema.org/a/VNFIBdm8W7BodG337UWChzyR9)

2. Brain-calc:

   [![asciicast](https://asciinema.org/a/LVXgzff0EnCWJbOYvaYasbkie.svg)](https://asciinema.org/a/LVXgzff0EnCWJbOYvaYasbkie)

3. Brain-gcd:

   [![asciicast](https://asciinema.org/a/yydJZZlz9yiwOlNNAcHaLibQq.svg)](https://asciinema.org/a/yydJZZlz9yiwOlNNAcHaLibQq)

4. Brain-progression:

   [![asciicast](https://asciinema.org/a/dis6YezCRGtsdZuqsMA81U76W.svg)](https://asciinema.org/a/dis6YezCRGtsdZuqsMA81U76W)

5. Brain-prime:

   [![asciicast](https://asciinema.org/a/5ljg2Bw3meFKNL9MVR9lfnbup.svg)](https://asciinema.org/a/5ljg2Bw3meFKNL9MVR9lfnbup)

## 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.).