Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines all possible castling-moves.
Synopsis
Types
Data-types
data CastlingMove Source #
Defines a castling-move.
Constants
kingsMoveLength :: X Source #
The constant number of files over which the King
always travels when castling.
Functions
getLongAndShortMoves :: LogicalColour -> (CastlingMove, CastlingMove) Source #
Break-down the two castling-moves for the specified logical colour into a long & a short castling-move.
Accessors
getCastlingMoves :: LogicalColour -> [CastlingMove] Source #
- Accessor.
- CAVEAT: the moves are returned in unspecified order.