#battleship #dimension #board #game #classic #generics #rectangular

spacebattleship

Implementation of the classic game Battleship with support for arbitrary dimensions and spaces through generics

1 unstable release

0.1.0 May 26, 2020

#6 in #rectangular

Apache-2.0

86KB
1.5K SLoC

SpaceBattleship

A library implementing the classic game Battleship with generic support for boards of a variety of shapes, including non-euclidian ones. Currently only basic rectangular boards are implemented here, but clients can implement their own board shapes by implemeting Dimensions.

Dependencies

~0.3–1MB
~20K SLoC