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.
- Calculator: Solve arithmetic expressions.
- Progression: Find the missing number in a sequence.
- Even Check: Determine if a number is even.
- Greatest Common Divisor: Calculate the greatest common divisor of two numbers.
- Prime Check: Determine if a number is prime.
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
$ 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