This is an object-oriented PHP implementation of the game Minesweeper. It was made to practice test-driven development. So this minesweeper implementation is fully unit tested.
Because of its OOP nature, it's easy to add custom squares instead of mines.
I hope anyone finds it useful.
- PHP 5.3
Download the files or clone this project.
git clone https://github.com/emiliopedrollo/php-minesweeper.git
Get all dependencies through composer:
./composer.phar update
./vendor/bin/phpunit --colors tests
This should output:
......................
Time: 0 seconds, Memory: 4.00Mb
OK (22 tests, 175 assertions)
PHP 5.4 is easy and fast:
cd public
php -S localhost:8000
Open http://localhost:8000 in your browser.
There will be no demo from me