mvaload/brain-games

My first project brain-games

v1.0.0 2018-07-27 10:14 UTC

This package is auto-updated.

Last update: 2024-11-17 07:12:40 UTC


README

Console Brain Games

Maintainability Test Coverage Build Status

Installing

composer global require mvaload/brain-games

Description

In each game, 3 questions are asked, it is necessary to correctly answer 3 questions,
to win the game. The first wrong answer ends the game.

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