arkadiy/php-project1

There is no license information available for the latest version (dev-master) of this package.

An educational project in written in PHP

dev-master 2019-06-21 00:09 UTC

This package is auto-updated.

Last update: 2024-04-21 20:05:01 UTC


README

Maintainability Build Status

Description

A small command line game involving basic arithmetical games which last for 3 rounds in case of succesfully answering the questions.

This is an educational project with the main goal to get familiar with setting up development environment in a PHP project.

Installation

In order to install the game run:

composer global require arkadiy/php-project1

asciicast

Usage

After you have installed the package you can run directly any of the following game modes:

  • brain-even
  • brain-calc
  • brain-gcd
  • brain-progression
  • brain-prime

Example of starting progression game

brain-progression

Brain-even

A game mode where user has to answer with a yes or no if the shown number is even. asciicast

Brain-calc

A game mode where user has to answer the correct result of a simple mathematical expression. asciicast

Brain-gcd

A game mode where user has to answer which is the greatest common divisor of the two shown numbers. asciicast

Brain-progression

A game mode where user has to answer which is the missing number from the arithmetical progression. asciicast

Brain-prime

A game mode where user has to answer with a yes or no if the shown number is a prime number. asciicast