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

Safe HaskellNone
LanguageHaskell98

Combinatorics.Battleship.SetCover

Documentation

boardCoords :: (Int, Int) -> [(Int, Int)] Source #

printState :: (Int, Int) -> State (ship, Map (Int, Int) Bool) set -> IO () Source #

printBoard :: (Int, Int) -> Map (Int, Int) Bool -> IO () Source #

select :: RandomGen g => [a] -> StateT g Maybe a Source #

listsFromBoard :: Num a => (a -> b) -> (Int, Int) -> Map (Int, Int) a -> [[b]] Source #