brain-game_hexlet-project-anikeieva
v1.0.15
Published
Set of console brain games
Downloads
2
Readme
project-lvl1-s292
About
It's a set of console brain games:
- brain-even,
- brain-calc,
- brain-gcd,
- brain-balance,
- brain-progression,
- brain-prime
You must correct answer to one type question three times to won. Else - start game again.
brain-even
Brain-even give a number and you must type is it even or not. Answers have to be "yes" or "not", other answers are error.
brain-calc
Brain-calc give expression and you must type result.
brain-gcd
Brain-gcd give two numbers and you must type greater common divisor for them.
brain-balance
Brain-balance give a number and you have to balance it. Digits of balanced number have to have difference no more than 1. For example, 334 - balanced number, 528 - not. Balanced number of 528 - 555. Also Digits of balanced number must be in rise.
brain-progression
Brain-progression give arithmetic progression without a member and you must type hidden one.
brain-prime
Brain-prime give a number and you have to answer is it prime or not.
Installation
sudo npm install -g brain-game_hexlet-project-anikeieva
Run
Each game runs with it name.
For example, installation, running and playing brain-even game (with different game options):