snetalena/frontend-project-lvl1

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Maintainability](https://api.codeclimate.com/v1/badges/3811aa92a325b2615641/maintainability)](https://codeclimate.com/github/snetalena/frontend-project-lvl1/maintainability)

[![Build Status](https://travis-ci.org/snetalena/frontend-project-lvl1.svg?branch=master)](https://travis-ci.org/snetalena/frontend-project-lvl1)

# "Brain Games" (frontend-project-lvl1)

"Brain Games" is set of games. 

For install use command: 
npm install -g brain_games_snetalena.

Сhoose one of the following commands to run the game from the console:

- `brain-even` - Answer "yes" if the number is even, otherwise answer "no".
- `brain-calc` - What is the result of the expression?
- `brain-gcd` - Find the greatest common divisor of given numbers.
- `brain-progression` - What number is missing in the progression?
- `brain-prime` - Answer "yes" if given number is prime. Otherwise answer "no".

To win, you must give the correct answer to three questions in a row. 
If you give the wrong answer, the game will be end, and you can start it again.

[Brain-even example](https://asciinema.org/a/t44rQcAILIziqan3BX1WSusMT)

[Brain-calc example](https://asciinema.org/a/zc0945ejJfSXqa6rxm1ggJjZk)

[Brain-gcd example](https://asciinema.org/a/Pv6JiOTFQHlQIhsteUVvaznQ3)

[Brain-progression example](https://asciinema.org/a/SOkAoppxTfrVdk0GYTpPgYpuo)

[Brain-prime example](https://asciinema.org/a/SOkAoppxTfrVdk0GYTpPgYpuo)