marazmatique
Version:
this is packadge for install and run Brain Games on your $shel
37 lines (29 loc) • 1.74 kB
Markdown
# project-lvl1-s486
[](https://codeclimate.com/github/marazmatique/project-lvl1-s486/maintainability)
[](https://travis-ci.com/marazmatique/project-lvl1-s486)
# The Brain Games
"Brain games" is a collection of games for CLI, based on simple logical and mathematical rules.
___
### **Install The BrainGames from npm**
```
npm install marazmatique
```
[](https://asciinema.org/a/MPt0QWzQyEhxfOuB63nA9U0Bl)
___
### **Game Options:**
#### To start the selected game, type the appropriate command in the CLI and complete the task:
1.``` brain-even ```
Answer "yes" if number even otherwise answer "no"
[](https://asciinema.org/a/fEvhA0BzvW1Sfk9Ln2JjCDj5O)
2.```brain-calc```
What is the result of the expression?
[](https://asciinema.org/a/cx19lPfxPUeF7fVdiAhRoaEvS)
3.```brain-gcd```
Find the greatest common divisor of given numbers.
[](https://asciinema.org/a/hE37HNWUbtKGyyEoCAT1XuKH2)
4.```brain-prog```
What number is missing in the progression?
[](https://asciinema.org/a/3W3az7CmIkzm392KpVb6GV86U)
5.```brain-prime```
Answer "yes" if given number is prime. Otherwise answer "no".
[](https://asciinema.org/a/kQgb1KSyqbs0WUPXvmZGbHUHI)