halma-0.3.0.1: Library implementing Halma rules

Safe HaskellNone
LanguageHaskell2010

Game.Halma.Rules

Synopsis

Documentation

data MoveRestriction Source #

Constructors

Allowed

moves of this kind of field are allowed

Temporarily

the player can pass the field but cannot occupy it

Forbidden

the player can't pass or occupy the field

data RuleOptions Source #

Constructors

RuleOptions 

Fields

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

Computes all possible moves for a piece.

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

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