| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BishBosh.Search.EphemeralData
Contents
Description
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.
Methods
Arguments
| :: a | |
| -> Int | Get the current size of the collection. |
Arguments
| :: 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 Methods getSize :: KillerMoves killerMoveKey -> Int Source # euthanise :: NPlies -> KillerMoves killerMoveKey -> KillerMoves killerMoveKey Source # | |
| EphemeralData (Transpositions qualifiedMove positionHash) Source # | |
Defined in BishBosh.Search.Transpositions Methods 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.
Methods
Arguments
| :: 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 positionHash) Source # | |
Defined in BishBosh.Search.DynamicMoveData Methods maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> DynamicMoveData positionHash -> DynamicMoveData positionHash Source # | |
| MaybeEphemeralData (SearchState positionHash) Source # | |
Defined in BishBosh.Search.SearchState Methods maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> SearchState positionHash -> SearchState positionHash Source # | |