https://github.com/influxow/php-project-lvl1
Simple Math Games on PHP
https://github.com/influxow/php-project-lvl1
binary game math php
Last synced: 3 months ago
JSON representation
Simple Math Games on PHP
- Host: GitHub
- URL: https://github.com/influxow/php-project-lvl1
- Owner: InfluxOW
- Created: 2019-11-30T12:37:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T06:05:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T16:47:48.714Z (4 months ago)
- Topics: binary, game, math, php
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Math Games
[](https://codeclimate.com/github/InfluxOW/php-project-lvl1/maintainability)
[](https://travis-ci.org/InfluxOW/php-project-lvl1)Description: https://ru.hexlet.io/professions/php/projects/45
$ installation process
[](https://asciinema.org/a/Mqf9aZRDHcabJA3dGhDrdYmUW)\
$ brain-calc game\
[](https://asciinema.org/a/v6UjP6yW1y1yFOUfNn1wF74Xw)\
$ brain-even game\
[](https://asciinema.org/a/Rv3YccaXH9oUtOuuqS9F14AZu)\
$ brain-gcd game\
[](https://asciinema.org/a/dZ7gggCImuOirHqSOQiirh2nz)\
$ brain-prime game\
[](https://asciinema.org/a/Ek6msGuEHwKIaOskZqn93HjuC)\
$ brain-progression game\
[](https://asciinema.org/a/sa6lEOsh1kCkdKEKUULFxbeTo)\
$brain-root additional game\
[](https://asciinema.org/a/w1b7sHoTxtvs8Q8koHyTfQzyd)\
$ brain-random feature\
[](https://asciinema.org/a/32Bf5qrGvvmR4PvIOtfRKkFBx)## How To Install
`composer global require influx/php-project-lvl1`
## How To Run A Game
run `brain-games` and then type game name
## Games List With Description
1. *calc*\
Find the result of the expression.
2. *even*\
Answer "yes" if given number is even, otherwise answer "no".
3. *gcd*\
Find the greatest common divisor of given numbers.
4. *prime*\
Answer "yes" if given number is prime, otherwise answer "no".
5. *progression*\
Find number that is missing in the progression.
6. *root*\
Find an integer whose square is closest to the given number.
## Options
brain-games --random run random game
brain-games --list show list of games with their missions
brain-games --help show help