halma-0.2.0.0: Library implementing Halma rules

Safe HaskellNone
LanguageHaskell2010

Game.Halma.Rules

Synopsis

Documentation

data RuleOptions Source

Constructors

RuleOptions 

Fields

movingBackwards :: MoveRestriction

May pieces be moved backwards?

invading :: MoveRestriction

May pieces be moved into other star corners?

possibleMoves :: RuleOptions -> HalmaBoard size -> (Int, Int) -> [(Int, Int)] Source

Computes all possible moves for a piece.

hasFinished :: HalmaBoard size -> Team -> Bool Source

Has a team all of it's pieces in the end zone?