This project is a set of mini-games launched from the console. The games are designed to be both fun and educational, testing and improving your mathematical skills. The project is implemented in JavaScript and utilizes a number of technologies and libraries.
- JavaScript (ES6)
- Node.js
- JSDoc
- npm
- readline-sync
- GitHub Actions
- ESLint
The project includes several mini-games, each focusing on different mathematical concepts:
brain-calc.js
: A game where the user is asked to calculate the result of an arithmetic expression.brain-even.js
: A game where the user needs to determine if a number is even.brain-gcd.js
: A game to find the greatest common divisor of two numbers.brain-prime.js
: A game where the user should determine if a number is prime.brain-progression.js
: A game where the user needs to find the missing number in an arithmetic progression.
To install the games, you'll need to have Node.js and npm installed on your machine. After that, you can clone the repository and install the dependencies.
git clone https://github.com/opifexM/CalcGames.git
cd CalcGames
npm install
After installation, you can run any game directly from the command line.
To play the "brain-games" game:
npm run brain-games
To play the "brain-even" game:
npm run brain-even
To play the "brain-calc" game:
npm run brain-calc
To play the "brain-gcd" game:
npm run brain-gcd
To play the "brain-progression" game:
npm run brain-progression
To play the "brain-prime" game:
npm run brain-prime