battleship-combinatorics-0.0.0.2: 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 # 
Instance details

Defined in Combinatorics.Battleship

Methods

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

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

Ord Ship Source # 
Instance details

Defined in Combinatorics.Battleship

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 # 
Instance details

Defined in Combinatorics.Battleship

Methods

showsPrec :: Int -> Ship -> ShowS #

show :: Ship -> String #

showList :: [Ship] -> ShowS #

data Board Source #

Constructors

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