Collection of games for leveling-up of brain abilities.
- Node.js version 16 or higher.
- Terminal for accessing Brain-Games via command line interface (CLI).
- Clone project to your computer.
# via HTTPS
git clone https://github.com/webdb81/frontend-project-44.git
# or via Github CLI
gh repo clone webdb81/frontend-project-44
- Go to the main directory of cloning project.
cd frontend-project-44
- Install all the necessary dependencies.
npm ci
- Linking package to be able to run games. This command may require admin rights aka
sudo
.
npm link
- Run the game using the commands from the list:
- brain-even (demo below).
- brain-calc (demo below).
- brain-gcd (demo below).
- brain-progression (demo below).
- brain-prime (demo below).
Checking for the parity of a random-generated number.
Find the result of a mathematical operation for two numbers.
Find the greatest common divisor for two numbers.
Find the missing number in the progression.
Check if a number is prime.