fidilly/brain-games

There is no license information available for the latest version (v1.9.3) of this package.

the first PHP project

v1.9.3 2019-04-07 09:59 UTC

This package is auto-updated.

Last update: 2024-04-07 20:54:09 UTC


README

Maintainability Test Coverage Build Status

Brain games is a small project that contains several games. The project contains the following games:

  • brain-games
  • brain-even
  • brain-calc
  • brain-gcd
  • brain-progression
  • brain-prime

Installation

Brain games can be installed globally or locally, with Composer package manager:

Global installation:

composer global require fidilly/brain-games

example:

asciicast

Local installation:

composer create-project fidilly/brain-games

example:

asciicast

Uninstall

If the game is installed globally:

composer global remove fidilly/brain-games

example:

asciicast

If the game is installed locally, then delete the brain-games directory.

Description and usage

To start the game, enter the name of the game in the terminal.

brain-games

Says Hello to user.

example:

asciicast

brain-even

You must answer an even number or not.

example:

asciicast

brain-calc

You need to calculate the mathematical expression shown on the screen.

example:

asciicast

brain-gcd

You need to find the greatest common divisor.

example:

asciicast

brain-progression

You need to find missing number from progression.

example:

asciicast

brain-prime

You need to check is the number simple or not.

example:

asciicast