bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Attribute.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.

Constants

Functions

Predicate

isBlack :: LogicalColourOfSquare -> Bool Source #

Whether the specified logical colour is Black.