Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Controls the growth of dynamic data collected during the search for a move.
Synopsis
- class EphemeralData a where
- class MaybeEphemeralData a where
- maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> a -> a
Type-classes
class EphemeralData a where Source #
An interface for short-lived data.
:: a | |
-> Int | Get the current size of the collection. |
:: NPlies | |
-> a | |
-> a | Prune items older than the specified number of plies, from the data. |
Instances
EphemeralData (KillerMoves killerMoveKey) Source # | |
Defined in BishBosh.Search.KillerMoves getSize :: KillerMoves killerMoveKey -> Int Source # euthanise :: NPlies -> KillerMoves killerMoveKey -> KillerMoves killerMoveKey Source # | |
EphemeralData (Transpositions qualifiedMove positionHash) Source # | |
Defined in BishBosh.Search.Transpositions getSize :: Transpositions qualifiedMove positionHash -> Int Source # euthanise :: NPlies -> Transpositions qualifiedMove positionHash -> Transpositions qualifiedMove positionHash Source # |
class MaybeEphemeralData a where Source #
For data which can be killed.
:: NPlies | The age at which to die. |
-> MaybeRetireAfterNMoves | The optional age at which to retire killer-moves. |
-> MaybeRetireAfterNMoves | The optional age at which to retire transpositions. |
-> a | |
-> a |
Instances
MaybeEphemeralData (DynamicMoveData x y positionHash) Source # | |
Defined in BishBosh.Search.DynamicMoveData maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> DynamicMoveData x y positionHash -> DynamicMoveData x y positionHash Source # | |
MaybeEphemeralData (SearchState x y positionHash) Source # | |
Defined in BishBosh.Search.SearchState maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> SearchState x y positionHash -> SearchState x y positionHash Source # |