rualt/brain-games

study project (Hexlet PHP online course)

dev-master 2019-08-15 09:35 UTC

This package is auto-updated.

Last update: 2024-05-15 20:14:21 UTC


README

Build Status Maintainability

This is a PHP study project (Hexlet.io PHP online couse)

Project Description

A set of primitive mini-games launched via console.

How to install

$ composer global require rualt/brain-games

How to play

You can choose of 5 different games. To win you have to give 3 correct answers in a row.

List of games

$ brain-calc

Find result of a random expression.

$ brain-even

Find out if a random number is even and write 'yes' or 'no'.

$ brain-gcd

Find a GCD of two random numbers.

$ brain-prime

Find out if a random number is prime and write 'yes' or 'no'.

$ brain-progression

Find a missing number of a random progression.

Gameplay examples

brain-calc

brain-even

brain-gcd

brain-prime

brain-progression