# 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-nod (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!
```

### Brain-calc

Launch game:

```
brain-calc
```

Find out the result of the expression

```
Question: 5 * 12
Your answer: 60
Correct!
```

### Brain-nod

Launch game:

```
brain-nod
```

Find the greatest common divisor of given numbers.

```
Question: 22, 50
Your answer: 2
Correct!
```

### Brain-prime

Launch game:

```
brain-prime
```

Is the number prime?

```
Question: 50
Your answer: no
Correct!
```

### 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!
```