bishbosh-0.1.2.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Component.Accountant

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Sum the relative values of rank of piece, based on their location on the board, at a specific stage in the game.
Synopsis

Type-classes

class Accountant accountant where Source #

An interface which may be implemented by data which can total piece-square values.

Methods

sumPieceSquareValueByLogicalColour Source #

Arguments

:: Num pieceSquareValue 
=> PieceSquareByCoordinatesByRank pieceSquareValue 
-> NPieces

The number of pieces (of any logical colour or rank) remaining on the board; used to gauge progress through the game.

-> accountant 
-> [pieceSquareValue] 

Calculate the total value of the coordinates occupied by the pieces of either side.