bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Component.PieceSquareValueByCoordinatesByRank

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the relative value of a specific rank of piece, occupying a specific square, at a each stage in the game's life-cycle.
Synopsis

Types

Type-synonyms

Data-types

data PieceSquareValueByCoordinatesByRank Source #

The piece-square value for various coordinates, optionally the number of pieces remaining, & rank.

Constants

gnuPlotComment :: Char Source #

The character used in GNUPlot to denote a comment.

Functions

formatForGNUPlot Source #

Arguments

:: PieceSquareValueByCoordinatesByRank 
-> (PieceSquareValue -> ShowS)

Format a pieceSquareValue.

-> ShowS

The column-delimiter.

-> NPieces

Select from interpolated values.

-> ShowS 

Format the data for input to GNUPlot.

Accessors

getPieceSquareValueByCoordinates Source #

Arguments

:: PieceSquareValueByCoordinatesByRank 
-> NPieces

An inverse proxy for the age of the game.

-> Rank

The piece's rank.

-> PieceSquareValueByCoordinates 

Retrieve the appropriate PieceSquareValueByCoordinates for the specified rank, @ the current stage of the game's life-cycle.

Constructor

mkPieceSquareValueByCoordinatesByRank :: (Rank -> PieceSquareValueByCoordinatesByEitherNPieces) -> PieceSquareValueByCoordinatesByRank Source #

Constructor.