Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
Synopsis
- type Transformation x y positionHash = DynamicMoveData x y positionHash -> DynamicMoveData x y positionHash
- data KillerMoveKey x y
- data DynamicMoveData x y positionHash
- mkKillerMoveKeyFromTurn :: Turn x y -> KillerMoveKey x y
- updateKillerMoves :: Transformation (KillerMoveKey x y) -> Transformation x y positionHash
- updateTranspositions :: Transformation (Move x y) positionHash -> Transformation x y positionHash
- euthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> Transformation x y positionHash
Types
Type-synonyms
type Transformation x y positionHash = DynamicMoveData x y positionHash -> DynamicMoveData x y positionHash Source #
The type of a function which transforms the dynamic move-data.
Data-types
data KillerMoveKey x y Source #
- Killer-moves are indexed by both the move & the rank of the piece which made it.
- CAVEAT: there's still ambiguity in this key, since it may match either a different piece of the same rank or have a different move-type (though typically only quiet moves are recorded), in sibling games.
Instances
(Eq x, Eq y) => Eq (KillerMoveKey x y) Source # | |
Defined in BishBosh.Search.DynamicMoveData (==) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # (/=) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # | |
(Ord x, Ord y) => Ord (KillerMoveKey x y) Source # | |
Defined in BishBosh.Search.DynamicMoveData compare :: KillerMoveKey x y -> KillerMoveKey x y -> Ordering # (<) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # (<=) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # (>) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # (>=) :: KillerMoveKey x y -> KillerMoveKey x y -> Bool # max :: KillerMoveKey x y -> KillerMoveKey x y -> KillerMoveKey x y # min :: KillerMoveKey x y -> KillerMoveKey x y -> KillerMoveKey x y # | |
(Show x, Show y) => Show (KillerMoveKey x y) Source # | |
Defined in BishBosh.Search.DynamicMoveData showsPrec :: Int -> KillerMoveKey x y -> ShowS # show :: KillerMoveKey x y -> String # showList :: [KillerMoveKey x y] -> ShowS # |
data DynamicMoveData x y positionHash Source #
The data on moves, gathered while searching.
Instances
Empty (DynamicMoveData x y positionHash) Source # | |
Defined in BishBosh.Search.DynamicMoveData empty :: DynamicMoveData x y positionHash Source # |
Functions
Constructors
mkKillerMoveKeyFromTurn :: Turn x y -> KillerMoveKey x y Source #
Constructor.
Mutators
updateKillerMoves :: Transformation (KillerMoveKey x y) -> Transformation x y positionHash Source #
Mutator.
updateTranspositions :: Transformation (Move x y) positionHash -> Transformation x y positionHash Source #
Mutator.
:: NPlies | The number of plies currently applied to the game. |
-> MaybeRetireAfterNMoves | The number of full moves after which killer-moves should be retired. |
-> MaybeRetireAfterNMoves | The number of full moves after which transpositions should be retired. |
-> Transformation x y positionHash |
Remove archaic data.