Skip to content

proscrumdev/battleship-php

 
 

Repository files navigation

Build status

Battleship PHP

A simple game of Battleship, written in PHP. The purpose of this repository is to serve as an entry point into coding exercises and it was especially created for scrum.orgs Applying Professional Scrum for Software Development course (www.scrum.org/apssd). The code in this repository is unfinished by design. Created by Sergey https://github.com/2heoh

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 update

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

Languages

  • PHP 97.5%
  • Gherkin 2.5%