bishbosh-0.1.1.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Evaluation.QuantifiedGame

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Quantifies a game, & therefore the sequence of moves applied.
  • The fitness & its breakdown into constituent criterion-values, are also recorded.
Synopsis

Types

Type-synonyms

type OpenInterval x y = (Maybe (QuantifiedGame x y), Maybe (QuantifiedGame x y)) Source #

  • The open interval in which to search for better solutions.
  • N.B.: Nothing is interpreted as unbounded.

Data-types

data QuantifiedGame x y Source #

The selected game & the criteria against which it was quantified.

Instances

Instances details
(Enum x, Enum y, Ord x, Ord y) => Eq (QuantifiedGame x y) Source # 
Instance details

Defined in BishBosh.Evaluation.QuantifiedGame

(Enum x, Enum y, Ord x, Ord y, Show x, Show y) => Show (QuantifiedGame x y) Source # 
Instance details

Defined in BishBosh.Evaluation.QuantifiedGame

NFData (QuantifiedGame x y) Source # 
Instance details

Defined in BishBosh.Evaluation.QuantifiedGame

Methods

rnf :: QuantifiedGame x y -> () #

Null (QuantifiedGame x y) Source # 
Instance details

Defined in BishBosh.Evaluation.QuantifiedGame

Methods

isNull :: QuantifiedGame x y -> Bool Source #

(Enum x, Enum y) => ShowNotationFloat (QuantifiedGame x y) Source # 
Instance details

Defined in BishBosh.Evaluation.QuantifiedGame

Constants

Functions

compareFitness :: QuantifiedGame x y -> QuantifiedGame x y -> Ordering Source #

Compares fitness.

Accessors

Constructors

fromGame Source #

Arguments

:: (Enum x, Enum y, Fractional pieceSquareValue, Ord x, Ord y, Real pieceSquareValue, Show x, Show y) 
=> Maybe pieceSquareValue

The value for the specified game.

-> Game x y

The current state of the game.

-> Reader pieceSquareValue x y (QuantifiedGame x y) 

Constructor.

Accessors

getLastTurn :: QuantifiedGame x y -> Turn x y Source #

Retrieve the turn used to generate the selected game.

getLatestTurns Source #

Arguments

:: NPlies

The number of plies to drop from the start of the chronological sequence.

-> QuantifiedGame x y 
-> [Turn x y] 

Drop the specified number of plies from the start of the chronological sequence, leaving the most recent.

Mutators

negateFitness :: QuantifiedGame x y -> QuantifiedGame x y Source #

Represent the fitness of the game resulting from a future move by the opponent, from the perspective of the current player.

negateInterval :: OpenInterval x y -> OpenInterval x y Source #

Reflect the interval about zero.