Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Itemises the ways in which a game may be declared a draw.
- Each reason corresponds to a rule in chess.
Types
Data-types
data DrawReason Source #
The sum-type of ways in which a game can be drawn.
Instances
Constants
maximumConsecutiveRepeatablePlies :: NPlies Source #
The number of consecutive plies required to trigger a draw by the seventy-five move rule.
maximumConsecutiveRepeatablePositions :: NPositions Source #
The number of consecutive repeatable positions required for a draw by the five-fold repetition rule.
byAgreement :: DrawReason Source #
Constant.
seventyFiveMoveRule :: DrawReason Source #
Constant.
insufficientMaterial :: DrawReason Source #
Constant.
staleMate :: DrawReason Source #
Constant.
fiveFoldRepetition :: DrawReason Source #
Constant.