mariya / brain-games
The first PHP project, a set of console mini-games
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:project
pkg:composer/mariya/brain-games
Requires
- wp-cli/php-cli-tools: ^0.11.11
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-19 09:21:10 UTC
README
The first PHP project, a set of console mini-games
Sample gameplay
$ brain-progression
Welcome to the Brain Game!
What number is missing in this progression?
May I have your name? Roman
Hello, Roman!
Question: 14 .. 18 20 22 24 26 28
Your answer: 16
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24
Correct!
Congratulations, Roman!
Installation
Via Composer
$ composer require mariya/brain-games
Running games
Parity check:
$ brain-even
Calculator:
$ brain-calc
Greatest common divisor:
$ brain-gcd
Arithmetic progression:
$ brain-progression
Simple number:
$ brain-prime