Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines the data-type which represents the logical (rather than physical) colour of the squares on a chess-board.
- N.B.: conceptually different from the logical colour of pieces.
Synopsis
Types
Data-type
data LogicalColourOfSquare Source #
The logical colour of a square of the board, cf. of a piece or (conceptually) of a player.
Instances
Constants
black :: LogicalColourOfSquare Source #
Constant.
white :: LogicalColourOfSquare Source #
Constant.
Functions
Predicate
isBlack :: LogicalColourOfSquare -> Bool Source #
Whether the specified logical colour is Black
.