bishbosh-0.0.0.2: 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.

Minimal complete definition

getSize, euthanise

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 # 

Methods

getSize :: KillerMoves killerMove -> Int Source #

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

EphemeralData (Transpositions move positionHash) Source # 

Methods

getSize :: Transpositions move positionHash -> Int Source #

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