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
Requires
- wp-cli/php-cli-tools: ^0.11.11
Requires (Dev)
README
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:
Local installation:
composer create-project fidilly/brain-games
example:
Uninstall
If the game is installed globally:
composer global remove fidilly/brain-games
example:
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:
brain-even
You must answer an even number or not.
example:
brain-calc
You need to calculate the mathematical expression shown on the screen.
example:
brain-gcd
You need to find the greatest common divisor.
example:
brain-progression
You need to find missing number from progression.
example:
brain-prime
You need to check is the number simple or not.
example: