| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.Halma.Rules
- data MoveRestriction
- data RuleOptions = RuleOptions {}
- possibleMoves :: RuleOptions -> HalmaBoard -> (Int, Int) -> [(Int, Int)]
- hasFinished :: HalmaBoard -> Team -> Bool
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?