A set of cli mini games in a form of an npm module.
Every game is a simple 3-round process, giving questions and accepting user answers
- Brain-even - guess if the number is even or not
- Brain-gcd - find the greatest common divisor of 2 given numbers
- Brain-progression - find the missing element of a random arithmetic progression
- Brain-prime - guess if the given number is prime or not
- Brain-calc - find a result of a given random math operation with 2 numbers
- Download or clone this repository
- Open a terminal window in the project folder and run:
npm link
This will install the game set as a global npm module and you will be able to launch each game from anywhere in the terminal window. To lauch any game, just execute the game name as a command in your terminal. Like this:
brain-even
Happy playing!