foreachq/brain-games

Brain games project

v1.1 2022-02-10 15:53 UTC

This package is auto-updated.

Last update: 2024-05-17 15:35:15 UTC


README

PHP CI 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65303165636161653261306539393964323534662f6d61696e7461696e6162696c697479

Brain Games

«Brain Games» — a set of five console games based on popular mobile brain training apps.

Description

Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

Games:

  • Calculator. Arithmetic expressions to be evaluated.
  • Progression. Search for missing numbers in a sequence of numbers.
  • Definition of an even number.
  • Determining the greatest common divisor.
  • Definition of a prime number.

Requirements

  • php 7.4
  • composer 2.*

Installation

  • Download package
composer create-project foreachq/brain-games
  • Install dependencies
make install

Usage

  • Choose 1 game from list:

    • Definition of an even number (brain-even)
    • Calculator (brain-calc)
    • Determining the greatest common divisor (brain-gcd)
    • Progression (brain-progression)
    • Definition of a prime number (brain-prime)
  • Run make command:

make <game-name>

Asciinemas of gameplay