free-donut/project-lvl1-s482

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# project-lvl1-s482. Brain games

[![Maintainability](https://api.codeclimate.com/v1/badges/606143e3070bae2869d3/maintainability)](https://codeclimate.com/github/free-donut/project-lvl1-s482/maintainability)

[![Build Status](https://travis-ci.org/free-donut/project-lvl1-s482.Brain-games.svg?branch=master)](https://travis-ci.org/free-donut/project-lvl1-s482.Brain-games)

## Description

Brain games is a set of mini-games launched from the console.

* brain-even (Answer "yes" if number 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 this progression?)
* brain-prime (Answer "yes" if number prime otherwise answer "no".)

## Installation

```bash
$ composer global require free-donut/hexlet
```

## Launch and examples

### Even

```bash
$ brain-even
```
[![asciicast](https://asciinema.org/a/pKFgZ18WjSu4EpfVxmYW8fjYf.svg)](https://asciinema.org/a/pKFgZ18WjSu4EpfVxmYW8fjYf)

### Calc

```bash
$ brain-calc
```
[![asciicast](https://asciinema.org/a/VEd0QmiPEpDoHXI3yA5VxEu6k.svg)](https://asciinema.org/a/VEd0QmiPEpDoHXI3yA5VxEu6k)

### GSD

```bash
$ brain-gcd
```
[![asciicast](https://asciinema.org/a/mSwF74Lp65J0TXXzyo0weF7xv.svg)](https://asciinema.org/a/mSwF74Lp65J0TXXzyo0weF7xv)

### Progression

```bash
$ brain-progression
```
[![asciicast](https://asciinema.org/a/gfF2FztB0Du4dmGTySKE7rzcX.svg)](https://asciinema.org/a/gfF2FztB0Du4dmGTySKE7rzcX)

### Prime

```bash
$ brain-prime
```
[![asciicast](https://asciinema.org/a/c6YsHznWGPMzpKM3Qa3sNmYxc.svg)](https://asciinema.org/a/c6YsHznWGPMzpKM3Qa3sNmYxc)