No description
Find a file
apssd-admin b9534e5a5a
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
cmd Refactoring and added telemetry 2022-09-25 17:00:07 +00:00
.gitignore Refactoring and added telemetry 2022-09-25 17:00:07 +00:00
.gitlab-ci.yml Refactoring and added telemetry 2022-09-25 17:00:07 +00:00
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines 2022-09-25 19:49:58 +02:00
go.mod Refactoring and added telemetry 2022-09-25 17:00:07 +00:00
go.sum Refactoring and added telemetry 2022-09-25 17:00:07 +00:00
README.md Update README.md 2022-09-25 20:21:53 +02:00

go Battleship

A simple game of Battleship, written in golang. 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. Many thanks to Sergey https://github.com/2heoh for the original creation.

Getting started

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

Run locally

Run battleship

go run cmd/main.go

Execute tests

go test ./...

Docker

If you don't want to install anything related with golang 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 golang:1.17 bash

This will run a Docker container with your battleship case study mounted into it. The container will run in interactive mode and you can execute Gradle commands from the shell (see examples below).

Launching the game

go run cmd/main.go

Running the Tests

go test ./...