bishbosh-0.0.0.3: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.Transpositions

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Types

Type-synonyms

type Transformation move positionHash = Transpositions move positionHash -> Transpositions move positionHash Source #

The type of a function which transforms Transpositions.

Data-types

data Transpositions move positionHash Source #

Stores the result of an alpha-beta search from a position.

Instances

Empty (Transpositions move positionHash) Source # 

Methods

empty :: Transpositions move positionHash Source #

EphemeralData (Transpositions move positionHash) Source # 

Methods

getSize :: Transpositions move positionHash -> Int Source #

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

Functions

find :: Ord positionHash => positionHash -> Transpositions move positionHash -> Maybe (Value move) Source #

Returns any value previously recorded when searching from the specified position.

Mutators

insert Source #

Arguments

:: (Ord positionHash, Ord weightedMean) 
=> FindFitness move weightedMean 
-> positionHash

Represents the game from which the sequence of moves starts.

-> Value move

The value to record.

-> Transformation move positionHash 
  • Optionally record a value found while searching for the optimal move from a position, against the position's hash.
  • If a matching key already exists, it's replaced if the new value is considered to be better.