| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.Halma.Rules
- data RuleOptions = RuleOptions {}
- possibleMoves :: RuleOptions -> HalmaBoard size -> (Int, Int) -> [(Int, Int)]
- hasFinished :: HalmaBoard size -> Team -> Bool
Documentation
data RuleOptions Source
Constructors
| RuleOptions | |
Fields
| |
Instances
| Eq RuleOptions | |
| Show RuleOptions | |
| Default RuleOptions |
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?