Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines an entry in the transposition-table.
Synopsis
- type IsOptimal = Bool
- type FindFitness qualifiedMove = TranspositionValue qualifiedMove -> WeightedMean
- data TranspositionValue qualifiedMove
- inferSearchDepth :: TranspositionValue qualifiedMove -> NPlies
- mkTranspositionValue :: IsOptimal -> NPlies -> [qualifiedMove] -> TranspositionValue qualifiedMove
- isBetter :: FindFitness qualifiedMove -> TranspositionValue qualifiedMove -> TranspositionValue qualifiedMove -> Bool
Types
Type-synonyms
type FindFitness qualifiedMove = TranspositionValue qualifiedMove -> WeightedMean Source #
- The type of a function which can find the fitness of the game resulting from the recorded sequence of qualifiedMoves.
- CAVEAT: the fitness this function returns should be from the perspective of the player to make the first move.
Data-types
data TranspositionValue qualifiedMove Source #
The type of the values in the transposition-table.
Instances
Show qualifiedMove => Show (TranspositionValue qualifiedMove) Source # | |
Defined in BishBosh.Search.TranspositionValue showsPrec :: Int -> TranspositionValue qualifiedMove -> ShowS # show :: TranspositionValue qualifiedMove -> String # showList :: [TranspositionValue qualifiedMove] -> ShowS # |
Functions
inferSearchDepth :: TranspositionValue qualifiedMove -> NPlies Source #
Infer the search-depth from the length of the qualifiedMove-sequence.
Constructor
mkTranspositionValue :: IsOptimal -> NPlies -> [qualifiedMove] -> TranspositionValue qualifiedMove Source #
Smart constructor.
Predicates
:: FindFitness qualifiedMove | |
-> TranspositionValue qualifiedMove | The proposed value. |
-> TranspositionValue qualifiedMove | The incumbent value. |
-> Bool |