lubaro/brain-games

A set of mini-games for CLI. First level project on hexlet.io.

1.1 2019-11-20 16:48 UTC

This package is auto-updated.

Last update: 2024-04-23 22:26:09 UTC


README

Maintainability Build Status

The set of mini-console games. To win, you need to give three correct answers in a row. If you gave the wrong answer, you lost.

List of games:

  1. brain-even - Determine if the number is even.
  2. brain-calc - Calculate expression result.
  3. brain-gcd - Find the greatest common divisor of two numbers.
  4. brain-progression - Determine what number is missing.
  5. brain-prime - Determine if the number is prime.

Installation:

To install this package run this command (Composer required): composer global require lubaro/brain-games

After that you can start game by running the command: brain-[game_name]

asciicast