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 game
Install dependencies
composer update
Run tests
composer run test
If 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 bash
composer run game
Don't forget to install dependencies ;)
composer install
Run 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