integralik/braingames.localhost

v1.8.3 2020-09-02 12:11 UTC

This package is auto-updated.

Last update: 2025-06-29 01:59:05 UTC


README

With this project you can play BrainGames on your computer. When you start the game and enter your name, you see the rules of the game. You have three tries. If you are incorrect, you lose. If you are correct three times in a row, you win.

To install this project on your computer, you need Linux or MacOS. Also you need PHP 7 and Composer installed.

Setup

$ composer global require integralik/braingames.localhost

The global composer directory for your user has to be added to the PATH. For example:

$ export PATH="/home/username/.config/composer/:$PATH"

After that restart your session.

BrainEven game

To play the game, enter

$ brain-even

You have to decide whether the number is even (answer "yes") or not (answer "no"). Any other answer will also be incorrect.

BrainCalc game

You have to calculate the result of the mathematic expressions.

BrainGCD game

You have to calculate the great common divisor of two numbers.

BrainProgression game

You have to fill the omission in arithmetic progression.

BrainPrime game

You have to decide whether the number is prime or not.