bondarenkosa/project-lvl1-s276

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Brain Games

[![Build Status](https://travis-ci.org/bondarenkosa/project-lvl1-s276.svg?branch=master)](https://travis-ci.org/bondarenkosa/project-lvl1-s276)
[![Maintainability](https://api.codeclimate.com/v1/badges/af42f9ee5b42ca1b0e90/maintainability)](https://codeclimate.com/github/bondarenkosa/project-lvl1-s276/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/af42f9ee5b42ca1b0e90/test_coverage)](https://codeclimate.com/github/bondarenkosa/project-lvl1-s276/test_coverage)

Terminal based Mini Games

### List of Games

- **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-balance** _(Balance the given number.)_
- **brain-progression** _(What number is missing in this progression?)_
- **brain-prime** _(Answer "yes" if number prime otherwise answer "no".)_

## Getting Started

These instructions will get you a copy of the project up and running on your local machine.

### Installing

**Globally**

Install the package:

```
$ composer global require bondsa/brain-games
```

Add to ```PATH``` ```~/.config/composer/vendor/bin```:

```
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bash_profile
```

Restart the terminal.

## Usage

```$ game-name```, e.g. ```$ brain-calc```

## Versioning

I use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/bondarenkosa/project-lvl1-s276/tags). 

## Authors

**Sergei Bondarenko**  - [GitHub](https://github.com/bondarenkosa/)