- Even Number In this game, the player is asked to determine whether a number is even or odd. The player is given three attempts for each number.
- Calculator The game asks the player to calculate the result of a mathematical expression. The player is given three attempts for each expression.
- Greatest Common Divisor The player is given several pairs of numbers, and their task is to find the greatest common divisor for each pair. The player is given three attempts for each pair of numbers.
- Missing Number in Arithmetic Progression The player is given a sequence of numbers in which one number is missing. Their task is to determine the missing number. The player is given three attempts for each sequence of numbers.
- Prime Number In this game, the player is given a number, and their task is to determine whether it is a prime number or not. The player is given three attempts for each number.
- Node.js version 10 or higher
- Clone the repository to your computer.
- Install dependencies by running
npm install
oryarn install
. - To install binary files, run the command
npm link
oryarn link
.
To run the games, execute one of the following commands:
brain-even
brain-calc
brain-gcd
brain-progression
brain-prime
Follow the instructions in the console for each game.
You have three attempts for each game. Good luck!