specialsnipe/php-project-lvl1

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Simple Math Games
Description: https://ru.hexlet.io/professions/php/projects/45
### Hexlet tests and linter status:

[![Actions Status](https://github.com/specialsnipe/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/specialsnipe/php-project-lvl1/actions)
<a href="https://codeclimate.com/github/specialsnipe/php-project-lvl1/maintainability"><img src="https://api.codeclimate.com/v1/badges/c51e3eb8ec73b646e595/maintainability" /></a>

## How To Install
`composer global require specialsnipe/code:main-dev@dev`
## How To Run A Game
run `brain-game` 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.

brain-even game: \
[![asciicast](https://asciinema.org/a/2TrFsifP9bzK8p1mgxF072py1.svg)](https://asciinema.org/a/2TrFsifP9bzK8p1mgxF072py1) \
brain-calc game: \
[![asciicast](https://asciinema.org/a/1XshlmMWZu8eFT1JppiZ0Kwxf.svg)](https://asciinema.org/a/1XshlmMWZu8eFT1JppiZ0Kwxf) \
brain-gcd game: \
[![asciicast](https://asciinema.org/a/eckIoSQqYVtwMwWQdlqdnJEnn.svg)](https://asciinema.org/a/eckIoSQqYVtwMwWQdlqdnJEnn) \
brain-progression game: \
[![asciicast](https://asciinema.org/a/hFXYQKzjZmhGSF6kVf7Iy3gL3.svg)](https://asciinema.org/a/hFXYQKzjZmhGSF6kVf7Iy3gL3) \
brain-prime game:
[![asciicast](https://asciinema.org/a/1oJZnra8OTFjipuz9S5t1DuHq.svg)](https://asciinema.org/a/1oJZnra8OTFjipuz9S5t1DuHq)