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

1.0.0 2020-07-13 10:14 UTC

This package is auto-updated.

Last update: 2024-12-13 22:16:02 UTC


README

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