alexp11223/brain-games

hexlet.io project 1

0.7.7 2019-07-31 08:35 UTC

This package is auto-updated.

Last update: 2024-03-29 03:51:59 UTC


README

Maintainability Build Status

Brain Games

Small logic games involving basic arithmetical operations and number properties. Each game consists of up to 3 rounds.

This is an educational project implemented during https://hexlet.io courses aimed at setting up the environment, getting familiar with some best practices and creating a good simple architecture.

Installation

  • Install PHP 7.2+ and Composer.
  • Run composer global require alexp11223/brain-games.
  • Make sure that the Composer global bin dir (composer global config bin-dir --absolute) is in your PATH.

asciicast

Usage

Run the following games:

  • brain-even
  • brain-calc
  • brain-gcd
  • brain-progression
  • brain-prime

brain-even

Answer whether the given number is even.

asciicast

brain-calc

Enter the result of the arithmetic expression.

asciicast

brain-gcd

Find the greatest common divisor of two numbers.

asciicast

brain-progression

Enter the number missing in the arithmetic progression.

asciicast

brain-prime

Answer whether the given number is prime.

asciicast