Malcom1986/php-project-lvl1

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Brain Games
## Hexlet PHP project - level 1
[![Maintainability](https://api.codeclimate.com/v1/badges/4478c30868d4ec41bed6/maintainability)](https://codeclimate.com/github/Malcom1986/php-project-lvl1/maintainability)   [![Build Status](https://travis-ci.org/Malcom1986/php-project-lvl1.svg?branch=master)](https://travis-ci.org/Malcom1986/php-project-lvl1)

This repository contains Brain Games. This is a set of mini games launched from the console.

____
### Install:
`$ composer global require malcom/braingames`
____

### Games:

#### 1. "Parity Check"
Answer **yes** if the number is even, otherwise answer **no**
##### Launch
 `$ brain-even`

[![asciicast](https://asciinema.org/a/hCk2vwJ29ORhAj8vdSfMo0EYh.svg)](https://asciinema.org/a/hCk2vwJ29ORhAj8vdSfMo0EYh)

----

#### 2. "Calculator"
Find is the result of the expression
##### Launch
`$ brain-calc`

[![asciicast](https://asciinema.org/a/Qtff2eaK0aQkKiSiQhYBcyaIm.svg)](https://asciinema.org/a/Qtff2eaK0aQkKiSiQhYBcyaIm)

----

#### 3. "Greatest common divisor"
Find the greatest common divisor of given numbers
##### Launch
`$ brain-gcd`

[![asciicast](https://asciinema.org/a/SvwkCECAqDkqPO3HilnfiRj5O.svg)](https://asciinema.org/a/SvwkCECAqDkqPO3HilnfiRj5O)

----

#### 4. "Progression"
Find missing number in the progression
##### Launch
`$ brain-progression`

[![asciicast](https://asciinema.org/a/FNpOGRhMLwRTUBXRGkTWnWhTF.svg)](https://asciinema.org/a/FNpOGRhMLwRTUBXRGkTWnWhTF)

----

#### 5. "Is a prime"
Answer **yes** if given number is prime. Otherwise answer **no**

`$ brain-prime`

[![asciicast](https://asciinema.org/a/fdI3exA0JXDvZczqYORizdzeX.svg)](https://asciinema.org/a/fdI3exA0JXDvZczqYORizdzeX)