fidilly / brain-games
the first PHP project
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:project
pkg:composer/fidilly/brain-games
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: