bishbosh-0.1.3.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Search.Search

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Searches for the optimal move from those currently available.
Synopsis

Types

Data-types

data Result positionHash Source #

The type returned by search.

Instances

Instances details
NFData (Result positionHash) Source # 
Instance details

Defined in BishBosh.Search.Search

Methods

rnf :: Result positionHash -> () #

ShowNotationFloat (Result positionHash) Source # 
Instance details

Defined in BishBosh.Search.Search

Methods

showsNotationFloat :: MoveNotation -> (Double -> ShowS) -> Result positionHash -> ShowS Source #

Constants

showsSeparator :: ShowS Source #

Used to format output.

Functions

search Source #

Arguments

:: Ord positionHash 
=> NPlies

How deep down the tree to search.

-> SearchState positionHash 
-> Reader (Result positionHash) 

Initiates the recursive function negaMax, then unpacks the results.

Constructor