bishbosh-0.1.3.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.KillerMoves

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
https://www.chessprogramming.org/Killer_Heuristic.
Synopsis

Types

Type-synonyms

type Transformation killerMoveKey = KillerMoves killerMoveKey -> KillerMoves killerMoveKey Source #

The type of a function which transforms a collection of killer-moves.

Data-types

data KillerMoves killerMoveKey Source #

Data which can be used to advance the evaluation of identical sibling moves, in the hope of achieving beta-cutoff sooner.

Instances

Instances details
Empty (KillerMoves killerMoveKey) Source # 
Instance details

Defined in BishBosh.Search.KillerMoves

Methods

empty :: KillerMoves killerMoveKey Source #

EphemeralData (KillerMoves killerMoveKey) Source # 
Instance details

Defined in BishBosh.Search.KillerMoves

Methods

getSize :: KillerMoves killerMoveKey -> Int Source #

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

Functions

sortByHistoryHeuristic Source #

Arguments

:: Ord killerMoveKey 
=> LogicalColour 
-> (a -> killerMoveKey)

Key-constructor.

-> KillerMoves killerMoveKey 
-> [a] 
-> [a] 

Sorts an arbitrary list using the History-heuristic; https://www.chessprogramming.org/History_Heuristic.

Mutators

insert Source #

Arguments

:: Ord killerMoveKey 
=> NPlies

The total number of plies applied to the game.

-> killerMoveKey 
-> Transformation killerMoveKey 

Insert a killer-move.