Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 2.17 KB

README.md

File metadata and controls

58 lines (40 loc) · 2.17 KB

Hexlet tests and linter status:

Actions Status lint-check

Maintainability

Brain Games

Brain Games is a collection of five console-based mini-games designed to boost cognitive skills, similar to popular brain-training mobile apps. Each game presents questions requiring correct answers. The game is considered completed once a player provides three correct answers. A single incorrect answer ends the game and offers a chance to try again.


Games

  1. Calculator: Solve arithmetic expressions.
  2. Progression: Find the missing number in a sequence.
  3. Even Check: Determine if a number is even.
  4. Greatest Common Divisor: Calculate the greatest common divisor of two numbers.
  5. Prime Check: Determine if a number is prime.

Example Game

asciicast

Installation

To install the project, clone the repository and install the dependencies.

git clone https://github.com/sazanik/backend-project-lvl1.git
cd brain-games
make install
make publish # to simulate publishing the package without actually uploading it to the npm registry. Use this to verify your package configuration before a real publish
make link # to symlink the package globally. This lets you test the package locally as if it were installed via npm

Usage

$ brain-even        # Starts the Even Check game
$ brain-calc        # Starts the Calculator game
$ brain-gcd         # Starts the Greatest Common Divisor game
$ brain-prime       # Starts the Prime Check game
$ brain-progression # Starts the Progression game