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