Skip to content

fidilly/brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain games

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