archi0619/php-project-lvl1

View on GitHub
README.md

Summary

Maintainability
Test Coverage
## Brain Games

## Hexlet tests and linter status:
[![Actions Status](https://github.com/archi0619/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/archi0619/php-project-lvl1/actions)

[![Maintainability](https://api.codeclimate.com/v1/badges/a79c57dabdb17a74e834/maintainability)](https://codeclimate.com/github/archi0619/php-project-lvl1/maintainability)

[![PHPCS TEST](https://github.com/archi0619/php-project-lvl1/actions/workflows/phpcstest.yml/badge.svg?branch=main)](https://github.com/archi0619/php-project-lvl1/actions/workflows/phpcstest.yml)

Brain Games is a 5 console games:

1. 'brain-even'. You should answer, is number even or not.

2. 'brain-calc'. Find the result of expression.

3. 'brain-gcd'. Find the greatest common divisor (GCD) of two numbers.

4. 'brain-progression'. Wright the missed number in progression.

5. 'brain-prime'. Answer the question 'Is given number is prime?'.

## Requirements:

1. PHP 7 and more.

2. Composer (global installed).

## Setup

```sh
$ git clone https://github.com/archi0619/php-project-lvl1.git
$ cd php-project-lvl1
$ make install
```

## Start game:

Use comman 'make' with name of the game, for example:

```sh
$ make brain-even
$ make brain-calc
```
Or use command:

./bin/name_of_the_game

## Games demonstration:

brain-even game:
[![asciicast](https://asciinema.org/a/txlNTiGE3eRjgNZwmywixO1ph.svg)](https://asciinema.org/a/txlNTiGE3eRjgNZwmywixO1ph)

brain-calc game:
[![asciicast](https://asciinema.org/a/UM1MIDyDBjz5idFfAbv7a2HrD.svg)](https://asciinema.org/a/UM1MIDyDBjz5idFfAbv7a2HrD)

brain-gcd game:
[![asciicast](https://asciinema.org/a/jPEmnd4TLAMVU11FkRSOUIQBE.svg)](https://asciinema.org/a/jPEmnd4TLAMVU11FkRSOUIQBE)

brain-progression game:
[![asciicast](https://asciinema.org/a/loh388UWA4Gh28AtYXHOZdYn4.svg)](https://asciinema.org/a/loh388UWA4Gh28AtYXHOZdYn4)

brain-prime game:
[![asciicast](https://asciinema.org/a/3GtRKlnaFZBCiXAYHY1TJp4UU.svg)](https://asciinema.org/a/3GtRKlnaFZBCiXAYHY1TJp4UU)