This is a set of five simple math games with command-line interface build on the principle of popular mobile applications for brain pumping.
Games:
- Calculator: Arithmetic expressions that need to be calculated
- Progression: Search for missing numbers in a sequence of numbers
- Determination of an even number
- Determination of the greatest common divisor
- Determination of a prime number
You can find more details in the demonstration section below.
Node 14.x version at least
# clone this repository to your machine
$git clone git@github.com:Rema04Dev/cli-brain-games.git
# go to directory where you downloaded it
$cd cli-brain-games
# run the one of these command to install all necessary dependencies
$make install
or
$npm ci
# this command is responsible for linking commands from package.json to "./bin" directory
$npm link
Run one of these commands and enjoy!
$ brain-even
$ brain-calc
$ brain-gcd
$ brain-progression
$ brain-prime
Answer are even given numbers or not
Calculate the result of the expression
Find the greates common divisor of given numbers
Answer what number is missing in math progression
Answer are prime given numbers or not