| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.Colour.LogicalColourOfSquare
Description
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
| Bounded LogicalColourOfSquare Source # | |
Defined in BishBosh.Colour.LogicalColourOfSquare | |
| Eq LogicalColourOfSquare Source # | |
Defined in BishBosh.Colour.LogicalColourOfSquare Methods (==) :: LogicalColourOfSquare -> LogicalColourOfSquare -> Bool # (/=) :: LogicalColourOfSquare -> LogicalColourOfSquare -> Bool # | |
Constants
black :: LogicalColourOfSquare Source #
Constant.
white :: LogicalColourOfSquare Source #
Constant.
Functions
Predicates
isBlack :: LogicalColourOfSquare -> Bool Source #
Whether the specified logical colour is Black.