bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Attribute.PhysicalColour

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines the data-type which represents the physical (rather than logical) colour of the board & of pieces.
  • The number of physical colours used to represent the board & pieces can be greater than the two logical colours required, but is limited in practice, since the terminal (optionally) used to render the image, typically can't cope with with a large number.
Synopsis

Types

Data-types

data PhysicalColour Source #

  • Defines the sum-type of physical colours which can typically be rendered by a terminal.
  • CAVEAT: the constructor-order both facilitates conversion to an ANSI Colour-code & the derivation of the complementary colour.

Instances

Instances details
Bounded PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Enum PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Eq PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Read PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Show PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

NFData PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Methods

rnf :: PhysicalColour -> () #

XmlPickler PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

FixedMembership PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Opposable PhysicalColour Source # 
Instance details

Defined in BishBosh.Attribute.PhysicalColour

Constants