Skip to content

alex-rysaev/php-project-lvl1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Project Level 1

Maintainability PHP CI

Brain Games

These are small games for brain training. Five games are currently available:

  • Brain Calc — calculating the result of an expression
  • Brain Even — determining whether a number is even
  • Brain GCD — the calculation of the greatest common divisor
  • Brain Prime — determining whether a number is prime
  • Brain Progression — finding the missing progression element

You need to solve the problem three times in a row — then you win.

Setup

To setting up Brain Games you must have Composer installed. Also you may need to add Composer's vendor/bin folder to your $PATH.

Installing Brain Games:

user@ws:~$ composer global require alex-rysaev/php-project-lvl1

asciicast

Running Brain Calc

user@ws:~$ brain-calc

asciicast

Running Brain Even

user@ws:~$ brain-even

asciicast

Running Brain GCD

user@ws:~$ brain-gcd

asciicast

Running Brain Prime

user@ws:~$ brain-prime

asciicast

Running Brain Progression

user@ws:~$ brain-progression

asciicast