bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Component.PieceSquareValueByCoordinates

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the values of a single unspecified piece, of occupying various coordinates.
Synopsis

Types

Type-synonyms

Data-types

Functions

Accessors

dereference :: PieceSquareValueByCoordinates -> Coordinates -> PieceSquareValue Source #

Extract the value for the specified coordinates (from White's perspective).

getPieceSquareValue Source #

Arguments

:: PieceSquareValueByCoordinates 
-> LogicalColour

The piece's logical colour.

-> Coordinates

The piece's location.

-> PieceSquareValue 
  • Get the piece-square value, for the specified coordinates.
  • Utilises symmetry to infer values for Black, by reflecting the specified coordinates into White's domain.

toList :: PieceSquareValueByCoordinates -> [PieceSquareValue] Source #

Deconstruct, returning the ordered list from which it was constructed.

Constructors

fromList :: [PieceSquareValue] -> PieceSquareValueByCoordinates Source #

Constructor from a list ordered by coordinates.