bishbosh-0.0.0.3: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.DynamicMoveData

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Types

Type-synonyms

type Transformation x y positionHash = DynamicMoveData x y positionHash -> DynamicMoveData x y positionHash Source #

The type of a function which transforms the dynamic move-data.

Data-types

data KillerMoveKey x y Source #

  • Killer-moves are indexed by both the move & the rank of the piece which made it.
  • CAVEAT: there's still ambiguity in this key, since it may match either a different piece of the same rank or have a different move-type (though typically only quiet moves are recorded), in sibling games.

Instances

data DynamicMoveData x y positionHash Source #

The data on moves, gathered while searching.

Instances

Empty (DynamicMoveData x y positionHash) Source # 

Methods

empty :: DynamicMoveData x y positionHash Source #

Functions

Constructors

Mutators

updateTranspositions :: Transformation (Move x y) positionHash -> Transformation x y positionHash Source #

Mutator.

euthanise Source #

Arguments

:: NPlies

The number of plies currently applied to the game.

-> MaybeRetireAfterNMoves

The number of full moves after which killer-moves should be retired.

-> MaybeRetireAfterNMoves

The number of full moves after which transpositions should be retired.

-> Transformation x y positionHash 

Remove archaic data.