yanepenb/project-lvl1-s482

View on GitHub
README.md

Summary

Maintainability
Test Coverage
## Brain-Games PHP:
This is a set of logical mini-games launched from the console. List of games: Game: "Calculator" Game: "Parity Check" Game "Is it a prime number?" Game "Arithmetic Progression.

## **Badges**
[![Maintainability](https://api.codeclimate.com/v1/badges/6469dd41999438719ea4/maintainability)](https://codeclimate.com/github/yanepenb/project-lvl1-s482/maintainability)
[![Build Status](https://travis-ci.org/yanepenb/Brain-Games-PHP.svg?branch=master)](https://travis-ci.org/yanepenb/Brain-Games-PHP)

## **How to install:**
```
composer global require yanepenb/1hbraingames
``` 
![install](http://i.imgur.com/LzvuqhO.gif)

## **Description:**
* ```brain-even``` - the user is shown a random number. And he needs to answer "yes", if the number is even, or "no" - if it is odd.
* ```brain-calc``` - the user is shown a random mathematical expression, for example 35 + 16, which needs to be calculated and the *correct answer written down.
* ```brain-gcd``` - the user is shown two random numbers, for example, 25 50. The user must calculate and enter the greatest common divider of these numbers.
* ```brain-progression``` - the user is shown a series of numbers that form an arithmetic progression, one number is hidden. The user must define this number.
* ```brain-prime``` - the user is shown a random number. And he needs to answer “yes”, if the given number is simple. Otherwise, answer "no."

## **How to play games:**
### **Brain-even:**
![even](http://i.imgur.com/STLmWpT.gif)

### **Brain-calc:**
![calc](http://i.imgur.com/M3UMyCj.gif)

### **Brain-gcd:**
![gcd](http://i.imgur.com/coqdgsa.gif)

### **Brain-progression:**
![progression](http://i.imgur.com/Q39w0DY.gif)

### **Brain-prime:**
![prime](http://i.imgur.com/m4MPe2Q.gif)