ticktick/hexlet-php-project-1

Solution fo Hexlet Brain Games project

1.4 2020-05-28 21:15 UTC

This package is auto-updated.

Last update: 2025-07-06 00:33:59 UTC


README

Maintainability CI

A set of command line math games:

  • brain-games - you should answer if the number is even or not
  • brain-calc - you should calculate the result of math expression
  • brain-gcd - you should calculate the greatest common divisor for given numbers
  • brain-progression - you should find a missed element from the arithmetic progression
  • brain-prime - you should answer if the number is prime or not

Installation

composer global require ticktick/hexlet-php-project-1

Make sure ~/.composer/vendor/bin is in PATH, if you want to run games globally

export PATH="$PATH:$HOME/.composer/vendor/bin"

Installation & Brain-games example

$ brain-games

asciicast

Brain-calc example

$ brain-calc

asciicast

Brain-gcd example

$ brain-gcd

asciicast

Brain-progression example

$ brain-progression

asciicast

Brain-prime example

$ brain-prime

asciicast