ya-brain-games
v5.7.1
Published
[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability) [![Build Status](https://travis-ci.org/radislaw/project-lvl1-s232.svg?branch=master)](
Downloads
34
Readme
Brain-games
Description
This is CLI mini math games. Set consist of 6 games:
- brain-even
- brain-calc
- brain-gcd
- brain-balance
- brain-progression
- brain-prime
Installation
npm i -g ya-brain-games
Play
In terminal you have to type brain-games or name of one of given game. For example: brain-even
Game's rules
Every game has 3 rounds. If you give right answer on any offered question it lets you go to the next round otherwise game over, which reports message with correct answer.
Brain even
Answer "yes" if number even otherwise answer "no".
setup
brain-even
Brain calc
Answer the result of the expression.
setup
brain-calc
Brain gcd
Find the greatest common divisor of given numbers.
setup
brain-gcd
Brain progression
Find the missing number of given progression.
setup
brain-progression
Brain prime
Answer "yes" if number is prime otherwise answer "no".
setup
brain-prime