ticktick/hexlet-php-project-1

Solution fo Hexlet Brain Games project

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/ticktick/hexlet-php-project-1

1.4 2020-05-28 21:15 UTC

This package is auto-updated.

Last update: 2025-11-06 01:23:55 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