| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.Search.Search
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Searches for the optimal move from those currently available.
- data Result x y positionHash criterionValue weightedMean
- showsSeparator :: ShowS
- search :: (Enum x, Enum y, Eq criterionValue, Num weightedMean, Ord weightedMean, Ord positionHash, Ord x, Ord y) => SearchDepth -> SearchState x y positionHash criterionValue weightedMean -> Reader (Result x y positionHash criterionValue weightedMean)
- calculateBranchingFactor :: Floating branchingFactor => Result x y positionHash criterionValue weightedMean -> branchingFactor
Types
Data-types
Constants
showsSeparator :: ShowS Source #
Used to format output.
Functions
Arguments
| :: (Enum x, Enum y, Eq criterionValue, Num weightedMean, Ord weightedMean, Ord positionHash, Ord x, Ord y) | |
| => SearchDepth | How deep down the tree to search. |
| -> SearchState x y positionHash criterionValue weightedMean | |
| -> Reader (Result x y positionHash criterionValue weightedMean) |
Initiates the recursive function negaMax, then unpacks the results.
calculateBranchingFactor :: Floating branchingFactor => Result x y positionHash criterionValue weightedMean -> branchingFactor Source #
Calculate the geometric-mean of the number of moves evaluated at each node.