Skip to content

alex-patterson-webdev/domino-game

Repository files navigation

Build Status codecov Scrutinizer Code Quality

Arp\DominoGame

About

An object oriented solution to the Domino scoring challenge from Resume Library.

Installation

Installation via composer.

require alex-patterson-webdev/domino-game ^1

Installation via GitHub

git clone https://github.com/alex-patterson-webdev/domino-game.git

Usage

To play the Domino Game execute the index.php file from the command line; providing a comma separated list of players who will playing. A minimum of two and a maximum of four players names must be provided.

For example, to play with 3 players, Fred, Bob and Alice, use the following command.

php public/index.php Fred,Bob,Alice

The output will list, step by step, the players turns that are performed and the final winner.

Unit Tests

PHP Unit test using PHPUnit. Execute the tests by running the following command.

php vendor/bin/phpunit

About

Component library for the DominoGame

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages