lines-of-action-0.0.1: Lines of Action, 2-player strategy board game

Safe HaskellSafe
LanguageHaskell2010

LinesOfAction

Documentation

newtype Board Source #

Constructors

Board (Map (Int, Int) Checker) 

Instances

Eq Board Source # 

Methods

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

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

Show Board Source # 

Methods

showsPrec :: Int -> Board -> ShowS #

show :: Board -> String #

showList :: [Board] -> ShowS #

data Move Source #

Constructors

Move 

Fields

Instances

Eq Move Source # 

Methods

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

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

Show Move Source # 

Methods

showsPrec :: Int -> Move -> ShowS #

show :: Move -> String #

showList :: [Move] -> ShowS #

startGame :: Game m => m () Source #

play :: Game m => Board -> Checker -> m () Source #

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

filterOrdered :: Eq b => b -> [((Int, Int), Maybe b)] -> Maybe (Int, Int) Source #

neighbors :: Set (Int, Int) -> (Int, Int) -> Set (Int, Int) Source #

connected :: Set (Int, Int) -> Set (Int, Int) -> (Int, Int) -> Set (Int, Int) Source #