A set of 5 mini cli games: 'Is Even', 'Calculator', 'Greatest Common Divisor', 'Arithmetic Sequence', 'Is Prime'.
Running either game will:
- prompt a player to enter his/her name;
- greet the player;
- explain task;
- ask 3 random questions according to the task;
- congratulate player upon all correct answers.
If the answer is wrong at any point:
- a notification will show that the given answer is wrong along with the correct answer;
- the game will terminate.
$ git clone https://github.com/nstme/frontend-project-lvl1.git
$ cd frontend-project-lvl1
$ sudo npm link
Player has to answer if a given random integer is even.
$ brain-even
Player has to calculate a result of a random math expression -- adding or substraction or multiplication of 2 random integers.
$ brain-calc
Player has to find a greatest common divisor of 2 random integers.
$ brain-gcd
Player has to provide a missing integer in the random arithmetic sequence.
$ brain-progression
Player has to answer if a given random integer is prime.
$ brain-prime