bishbosh-0.1.0.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.AlphaBeta

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Synopsis

Types

Type-synonyms

Data-types

Functions

extractSelectedTurns :: NPlies -> Result x y positionHash criterionValue weightedMean -> (DynamicMoveData x y positionHash, [Turn x y], NPlies) Source #

  • Drop the specified number of turns; typically those made before starting the search.
  • CAVEAT: abandons the fitness component of the quantified game.

negaMax Source #

Arguments

:: (Enum x, Enum y, Eq criterionValue, Ord positionHash, Ord x, Ord y, Real weightedMean, Show x, Show y) 
=> SearchDepth

The depth to which the tree should be searched; i.e. the number of plies to look-ahead.

-> SearchState x y positionHash criterionValue weightedMean 
-> Reader (Result x y positionHash criterionValue weightedMean) 
  • Implements a depth-first search (implemented as nega-max), with alpha-beta pruning.
  • alpha is the minimum fitness of which the maximising player is assured.
  • beta is the maximum fitness of which the minimising player is assured.