martines/brain-games

first project

v1.1.1 2020-07-23 23:20 UTC

This package is auto-updated.

Last update: 2024-04-24 07:37:59 UTC


README

PHP CI Maintainability

About

Brain Games is a set of console mini-games for training mental arithmetic.

Install

$ composer global require martines/brain-games

Start

You can type in command-line:

$ brain-games

and select any game from the main menu,
or simply type the name of the game you are interested in:

  • brain-even - determine if the given number is even or not;
  • brain-calc - training of addition, subtraction and multiplication in the mind;
  • brain-gcd - find the greatest common divisor of two given numbers;
  • brain-progression - find the lost member of arithmetic progression;
  • brain-prime - determine if the given number is prime or not;

Each game is played in three rounds. With the first incorrect answer, the game ends.
Good luck!

See how it works!

Install package and start Even game

Launch examples of Calc game

Launch examples of Gcd game

Launch examples of Progression game

Launch examples of Prime game