bishbosh-0.1.4.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.Transpositions

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Synopsis

Types

Type-synonyms

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

The type of a function which transforms Transpositions.

Data-types

data Transpositions qualifiedMove positionHash Source #

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

Instances

Instances details
Empty (Transpositions qualifiedMove positionHash) Source # 
Instance details

Defined in BishBosh.Search.Transpositions

Methods

empty :: Transpositions qualifiedMove positionHash Source #

EphemeralData (Transpositions qualifiedMove positionHash) Source # 
Instance details

Defined in BishBosh.Search.Transpositions

Methods

getSize :: Transpositions qualifiedMove positionHash -> Int Source #

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

Functions

find :: Ord positionHash => positionHash -> Transpositions qualifiedMove positionHash -> Maybe (TranspositionValue qualifiedMove) Source #

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

Mutators

insert Source #

Arguments

:: Ord positionHash 
=> FindFitness qualifiedMove 
-> positionHash

Represents the game from which the sequence of qualifiedMoves starts.

-> TranspositionValue qualifiedMove

The value to record.

-> Transformation qualifiedMove 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.