bishbosh-0.0.0.4: Plays chess.

Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.AlphaBeta

Contents

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], NMoves) Source #

  • Remove any turns made before starting the search.
  • N.B.: abandons the fitness of the game.

negaMax Source #

Arguments

:: (Enum x, Enum y, Eq criterionValue, Num weightedMean, Ord weightedMean, Ord positionHash, Ord x, Ord 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.