dr-krokdi/php-project-lvl1

dev-main 2022-07-24 19:22 UTC

This package is auto-updated.

Last update: 2024-04-24 22:52:49 UTC


README

Hexlet tests and linter status:

Actions Status

Maintainability

PHPCS TEST

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

$ 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:

$ make brain-even
$ make brain-calc

Or use command:

./bin/name_of_the_game

Games demonstration:

brain-even game: asciicast

brain-calc game: asciicast

brain-gcd game: asciicast

brain-progression game: asciicast

brain-prime game: asciicast