Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines configurable options related to the process of searching for the optimal move.
Synopsis
- type SortOnStandardOpeningMoveFrequency = Bool
- type HammingDistance = Int
- type MaybeRetireAfterNMoves = Maybe NMoves
- type TrapRepeatedPositions = Bool
- type MaybeUseTranspositions = Maybe (NMoves, NPlies)
- type Reader = Reader SearchOptions
- data SearchOptions
- tag :: String
- sortOnStandardOpeningMoveFrequencyTag :: String
- searchDepthTag :: String
- minimumSearchDepth :: NPlies
- defaultSearchDepth :: NPlies
- mkSearchOptions :: SortOnStandardOpeningMoveFrequency -> Maybe CaptureMoveSortAlgorithm -> Maybe HammingDistance -> MaybeRetireAfterNMoves -> TrapRepeatedPositions -> UsePondering -> MaybeUseTranspositions -> StandardOpeningOptions -> SearchDepthByLogicalColour -> SearchOptions
- getSearchDepth :: SearchOptions -> NPlies
- maybeRetireTranspositionsAfter :: SearchOptions -> MaybeRetireAfterNMoves
- maybeMinimumTranspositionSearchDepth :: SearchOptions -> Maybe NPlies
- identifyAutomatedPlayers :: SearchOptions -> [LogicalColour]
- setSearchDepth :: NPlies -> Transformation
- swapSearchDepth :: Transformation
- recordKillerMoves :: SearchOptions -> RecordKillerMoves
Types
Type-synonyms
type SortOnStandardOpeningMoveFrequency = Bool Source #
Sort moves on the decreasing frequency of occurrence in standard openings.
type HammingDistance = Int Source #
The optional minimum Hamming-distance between the random numbers from which Zobrist-hashes are composed.
type MaybeRetireAfterNMoves = Maybe NMoves Source #
The number of full moves (one for each player) after which to retire killer moves.
type TrapRepeatedPositions = Bool Source #
Whether to short-circuit the fitness-evaluation of positions which have been visited before in the current game.
type MaybeUseTranspositions = Maybe (NMoves, NPlies) Source #
The number of full moves (one for each player) after which to retire transpositions & the search-depth beneath which they aren't recorded at all.
type Reader = Reader SearchOptions Source #
Self-documentation.
Data-types
data SearchOptions Source #
Defines options related to searching for a move.
Instances
Eq SearchOptions Source # | |
Defined in BishBosh.Input.SearchOptions (==) :: SearchOptions -> SearchOptions -> Bool # (/=) :: SearchOptions -> SearchOptions -> Bool # | |
Show SearchOptions Source # | |
Defined in BishBosh.Input.SearchOptions showsPrec :: Int -> SearchOptions -> ShowS # show :: SearchOptions -> String # showList :: [SearchOptions] -> ShowS # | |
Default SearchOptions Source # | |
Defined in BishBosh.Input.SearchOptions def :: SearchOptions # | |
NFData SearchOptions Source # | |
Defined in BishBosh.Input.SearchOptions rnf :: SearchOptions -> () # | |
XmlPickler SearchOptions Source # | |
Defined in BishBosh.Input.SearchOptions xpickle :: PU SearchOptions # |
Constants
sortOnStandardOpeningMoveFrequencyTag :: String Source #
Used to qualify XML.
searchDepthTag :: String Source #
Used to qualify XML.
minimumSearchDepth :: NPlies Source #
The constant minimum permissible search-depth.
defaultSearchDepth :: NPlies Source #
- The constant default search-depth.
- CAVEAT: this is rather arbitrary.
Functions
Constructor
:: SortOnStandardOpeningMoveFrequency | |
-> Maybe CaptureMoveSortAlgorithm | |
-> Maybe HammingDistance | The optional lower bound on the Hamming-distance between the random numbers used to compose Zobrist hashes from positions. |
-> MaybeRetireAfterNMoves | The number of full moves back from the current position, after which to retire killer-moves. |
-> TrapRepeatedPositions | |
-> UsePondering | |
-> MaybeUseTranspositions | The number of full moves after which to retire transpositions, & the search-depth beneath which transpositions aren't recorded. |
-> StandardOpeningOptions | |
-> SearchDepthByLogicalColour | |
-> SearchOptions |
Smart constructor.
Accessors
getSearchDepth :: SearchOptions -> NPlies Source #
Get either player's search-depth, using a default value when none are defined.
maybeRetireTranspositionsAfter :: SearchOptions -> MaybeRetireAfterNMoves Source #
When to retire transpositions.
maybeMinimumTranspositionSearchDepth :: SearchOptions -> Maybe NPlies Source #
The search-depth beneath which transpositions aren't recorded.
identifyAutomatedPlayers :: SearchOptions -> [LogicalColour] Source #
Extract those logical colours for which a search-depth has been defined, which implies that the corresponding player is automated.
Mutators
setSearchDepth :: NPlies -> Transformation Source #
Mutator.
swapSearchDepth :: Transformation Source #
Swap the logical colour associated with any searchDepth currently assigned.
Predicates
recordKillerMoves :: SearchOptions -> RecordKillerMoves Source #
Whether killer-moves are to be recorded.