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 ways in which a game can be drawn.
Instances
Eq DrawReason Source # | |
Defined in BishBosh.Model.DrawReason (==) :: DrawReason -> DrawReason -> Bool # (/=) :: DrawReason -> DrawReason -> Bool # | |
Read DrawReason Source # | |
Defined in BishBosh.Model.DrawReason readsPrec :: Int -> ReadS DrawReason # readList :: ReadS [DrawReason] # readPrec :: ReadPrec DrawReason # readListPrec :: ReadPrec [DrawReason] # | |
Show DrawReason Source # | |
Defined in BishBosh.Model.DrawReason showsPrec :: Int -> DrawReason -> ShowS # show :: DrawReason -> String # showList :: [DrawReason] -> ShowS # | |
NFData DrawReason Source # | |
Defined in BishBosh.Model.DrawReason rnf :: DrawReason -> () # |
Constants
maximumConsecutiveRepeatablePlies :: NMoves Source #
The number of consecutive plies required to trigger a draw by the seventy-five move rule.
maximumConsecutiveRepeatablePositions :: NMoves 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.
range :: [DrawReason] Source #
The constant range of possible values.