influx/php-project-lvl1

math games

v1.0.2 2019-12-13 06:27 UTC

This package is auto-updated.

Last update: 2024-03-29 04:05:19 UTC


README

Maintainability Build Status

Description: https://ru.hexlet.io/professions/php/projects/45

$ installation process asciicast
$ brain-calc game
asciicast
$ brain-even game
asciicast
$ brain-gcd game
asciicast
$ brain-prime game
asciicast
$ brain-progression game
asciicast
$brain-root additional game
asciicast
$ brain-random feature
asciicast

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