No description
  • PHP 97.5%
  • Gherkin 2.5%
Find a file
apssd-admin 2c87ad6c33
Some checks are pending
/ ci (push) Waiting to run
Add Forgejo workflow pipeline.yml
2026-12-05 18:48:52 +00:00
.forgejo/workflows Add Forgejo workflow pipeline.yml 2026-12-05 18:48:52 +00:00
.github/workflows Skip validation 2020-01-08 20:00:50 +03:00
features set required php version >7 & fixed bdd-test 2020-01-08 20:30:32 +03:00
src Added check for valid letters 2020-01-08 20:41:59 +03:00
test Added check for valid letters 2020-01-08 20:41:59 +03:00
.gitignore Output of test results for bhat 2020-01-09 15:06:36 +01:00
buildpipeline.yml Update buildpipeline.yml 2020-10-07 21:26:47 +02:00
composer.json Changed composer.json to allow newer versions of behat 2023-12-15 15:50:51 +01:00
composer.lock Output of test results for bhat 2020-01-09 15:06:36 +01:00
phpunit.xml Output of test results for bhat 2020-01-09 15:06:36 +01:00
README.md Update README.md 2022-06-10 13:00:09 +02:00
TODO.md Initial commit 2020-01-08 16:54:36 +03:00

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