An object oriented solution to the Domino scoring challenge from Resume Library.
Installation via composer.
require alex-patterson-webdev/domino-game ^1
Installation via GitHub
git clone https://github.com/alex-patterson-webdev/domino-game.git
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.
PHP Unit test using PHPUnit. Execute the tests by running the following command.
php vendor/bin/phpunit