bondsa/brain-games

Brain games

0.8.2 2018-05-27 09:34 UTC

README

Build Status Maintainability 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 for versioning. For the versions available, see the tags on this repository.

Authors

Sergei Bondarenko - GitHub