A simple game of Battleship, written in PHP.
This project requires a php7 or higher. To prepare to work with it, pick one of these options:
Run battleship with composer
composer run gameInstall dependencies
composer updateRun tests
composer run testIf you don't want to install anything php-related on your system, you can run the game inside Docker instead.
docker run -it -v ${PWD}:/battleship -w /battleship composer bashcomposer run gameDon't forget to install dependencies ;)
composer installRun tests:
composer run test
- On my ubuntu virtual server on DO I needed to install:
apt-get install composer php7.2-mbstring php7.2-dom