battleship-combinatorics-0.0: Compute number of possible arrangements in the battleship game

Safe HaskellSafe
LanguageHaskell98

Combinatorics.Battleship.Enumeration

Description

Enumerate all possible configurations in the Battleship game.

Synopsis

Documentation

data Box Source #

Constructors

Box (Int, Int) (Int, Int) 

mergeBox :: Box -> Box -> Box Source #

Bounding box around two boxes.

intersectBox :: Box -> Box -> Box Source #

Intersection of two boxes. If the intersection is empty, then the box will have left and right boundaries or upper and lower boundaries in swapped order.

main :: IO () Source #