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.

# 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.