Skip to content

AgiliXRU/battleship-php

Repository files navigation

Battleship PHP

A simple game of Battleship, written in PHP.

Getting started

This project requires a php7 or higher. To prepare to work with it, pick one of these options:

Run locally

Run battleship with composer

composer run game

Execute tests with composer

Install dependencies

composer update

Run tests

composer run test

Docker

If you don't want to install anything php-related on your system, you can run the game inside Docker instead.

Run a Docker Container from the Image

docker run -it -v ${PWD}:/battleship -w /battleship composer bash

Launching the game

composer run game

Running the Tests

Don't forget to install dependencies ;)

composer install

Run tests:

composer run test

Troubleshooting

  1. On my ubuntu virtual server on DO I needed to install:
apt-get install composer php7.2-mbstring php7.2-dom

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published