README.md
[![Maintainability](https://api.codeclimate.com/v1/badges/299e348f831ba3931e39/maintainability)](https://codeclimate.com/github/g1yk/project-lvl1-s486/maintainability)
[![Build Status](https://travis-ci.org/g1yk/project-lvl1-s486.svg?branch=master)](https://travis-ci.org/g1yk/project-lvl1-s486)
# Console Brain Games
## How to install
```
sudo npm install brain-games-onlyo -g
```
## List of games
```
brain-even (Is it an even number?)
brain-calc (Solve three mini arithmetic exercises)
brain-progression (Find out what number is missing in math progression)
brain-gcd (Find the greatest common divisor)
brain-prime (Is it a prime number?)
```
### Brain-even
Launch game:
```
brain-even
```
Answer "yes" if number are even, otherwise answer "no".
```
Question: 5
Your answer: no
Correct!
```
[![asciicast](https://asciinema.org/a/RMuC3S3ggcjZ97wg49LZeFHgu.svg)](https://asciinema.org/a/RMuC3S3ggcjZ97wg49LZeFHgu)
### Brain-calc
Launch game:
```
brain-calc
```
Find out the result of the expression
```
Question: 5 * 12
Your answer: 60
Correct!
```
[![asciicast](https://asciinema.org/a/lVzEc03EVmoTSVT7qEnlVb2y6.svg)](https://asciinema.org/a/lVzEc03EVmoTSVT7qEnlVb2y6)
### Brain-gcd
Launch game:
```
brain-gcd
```
Find the greatest common divisor of given numbers.
```
Question: 22, 50
Your answer: 2
Correct!
```
[![asciicast](https://asciinema.org/a/KEmd4BeiZ96Wb6imuCUevEWz1.svg)](https://asciinema.org/a/KEmd4BeiZ96Wb6imuCUevEWz1)
### Brain-prime
Launch game:
```
brain-prime
```
Is the number prime?
```
Question: 50
Your answer: no
Correct!
```
[![asciicast](https://asciinema.org/a/75Ac3ou7mBx5Legcy9ExSib7z.svg)](https://asciinema.org/a/75Ac3ou7mBx5Legcy9ExSib7z)
### Brain-progression
Launch game:
```
brain-progression
```
What number is missing in this progression?
```
Question: 5 9 .. 17 21 25 29 33 37 41
Your answer: 13
Correct!
```
[![asciicast](https://asciinema.org/a/70lXJxXq1uUJG1ckyS5g9rgjT.svg)](https://asciinema.org/a/70lXJxXq1uUJG1ckyS5g9rgjT)