jougene/brain-games

Hexlet project

1.1.18 2017-07-17 19:11 UTC

README

Code Climate Test Coverage Issue Count Build Status

Installation

composer global require jougene/brain-games

Description

Some mini console brain games. The specific game ask you for 3 questions. Your challenge is to answer to all of them correctly.

Games list

  • brain-even - specify if the number is even or not.
  • brain-calc - find the result of simple math expression
  • brain-gcd - find the greatest common divisor of two given numbers
  • brain-balance - balance the number (the difference of two digits in the given number should not equal more than one)
  • brain-progression - find a missed number in the arithmetic progression
  • brain-prime - specify if the number is prime or not

Usage

Firstly you need add ~/.composer/vendor/bin to your PATH

$ bin/'game name' ex. $ bin/brain-prime

Example

asciicast