arkadiy / php-project1
An educational project in written in PHP
Requires
- wp-cli/php-cli-tools: dev-master
Requires (Dev)
This package is auto-updated.
Last update: 2025-02-21 21:53:00 UTC
README
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
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.
Brain-calc
A game mode where user has to answer the correct result of a simple mathematical expression.
Brain-gcd
A game mode where user has to answer which is the greatest common divisor of the two shown numbers.
Brain-progression
A game mode where user has to answer which is the missing number from the arithmetical progression.
Brain-prime
A game mode where user has to answer with a yes or no if the shown number is a prime number.