bishbosh-0.1.4.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-class

class Accountant accountant where Source #

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

Methods

sumPieceSquareValueByLogicalColour Source #

Arguments

:: PieceSquareValueByCoordinatesByRank 
-> accountant 
-> NPieces

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

-> [Base] 

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