bishbosh-0.0.0.6: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.EphemeralData

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Permits maintenance of data collected during the search for a move.
Synopsis

Type-classes

class EphemeralData a where Source #

An interface for short-lived data.

Methods

getSize Source #

Arguments

:: a 
-> Int

Get the current size of the collection.

euthanise Source #

Arguments

:: NPlies 
-> a 
-> a

Prune old data from the collection.

Instances
EphemeralData (KillerMoves killerMove) Source # 
Instance details

Defined in BishBosh.Search.KillerMoves

Methods

getSize :: KillerMoves killerMove -> Int Source #

euthanise :: NPlies -> KillerMoves killerMove -> KillerMoves killerMove Source #

EphemeralData (Transpositions move positionHash) Source # 
Instance details

Defined in BishBosh.Search.Transpositions

Methods

getSize :: Transpositions move positionHash -> Int Source #

euthanise :: NPlies -> Transpositions move positionHash -> Transpositions move positionHash Source #