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

Safe HaskellSafe
LanguageHaskell98

Combinatorics.Battleship

Documentation

data Ship Source #

Constructors

Ship ShipSize Orientation (Int, Int) 

Instances

Eq Ship Source # 

Methods

(==) :: Ship -> Ship -> Bool #

(/=) :: Ship -> Ship -> Bool #

Ord Ship Source # 

Methods

compare :: Ship -> Ship -> Ordering #

(<) :: Ship -> Ship -> Bool #

(<=) :: Ship -> Ship -> Bool #

(>) :: Ship -> Ship -> Bool #

(>=) :: Ship -> Ship -> Bool #

max :: Ship -> Ship -> Ship #

min :: Ship -> Ship -> Ship #

Show Ship Source # 

Methods

showsPrec :: Int -> Ship -> ShowS #

show :: Ship -> String #

showList :: [Ship] -> ShowS #

data Board Source #

Constructors

Board (Int, Int) (Set (Int, Int))