| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- data PieceSquareValueByCoordinatesByRank
- gnuPlotComment :: Char
- formatForGNUPlot :: PieceSquareValueByCoordinatesByRank -> (PieceSquareValue -> ShowS) -> ShowS -> NPieces -> ShowS
- getPieceSquareValueByCoordinates :: PieceSquareValueByCoordinatesByRank -> NPieces -> Rank -> PieceSquareValueByCoordinates
- mkPieceSquareValueByCoordinatesByRank :: (Rank -> PieceSquareValueByCoordinatesByEitherNPieces) -> PieceSquareValueByCoordinatesByRank
Types
Type-synonyms
Data-types
data PieceSquareValueByCoordinatesByRank Source #
The piece-square value for various coordinates, optionally the number of pieces remaining, & rank.
Instances
Constants
gnuPlotComment :: Char Source #
The character used in GNUPlot to denote a comment.
Functions
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.