The code kata subject can be found at this link.
This implementation was made in BDD approach, using together
Using composer
$ composer install
You can play the game using
$ bin/escape-game <length> <steps> [<catPosition> <mousePosition>]
Parameters:
- length: length of the map
- steps: max steps allowed for the cat to catch the mouse
- catPosition: cat's position (random if not given)
- mousePosition: mouse's position (random if not given)
Behat test suites (configuration in behat.yml)
$ vendor/bin/behat
PHPSpec tests (configuration in phpspec.yml)
$ vendor/bin/phpspec run
PHPUnit tests (configuration in phpunit.xml)
$ vendor/bin/phpunit