Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Data on moves, gathered while searching.
Synopsis
- type Transformation positionHash = DynamicMoveData positionHash -> DynamicMoveData positionHash
- data KillerMoveKey
- data DynamicMoveData positionHash
- mkKillerMoveKeyFromTurn :: Turn -> KillerMoveKey
- updateKillerMoves :: Transformation KillerMoveKey -> Transformation positionHash
- updateTranspositions :: Transformation QualifiedMove positionHash -> Transformation positionHash
Types
Type-synonyms
type Transformation positionHash = DynamicMoveData positionHash -> DynamicMoveData positionHash Source #
The type of a function which transforms the dynamic move-data.
Data-types
data KillerMoveKey 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 KillerMoveKey Source # | |
Defined in BishBosh.Search.DynamicMoveData (==) :: KillerMoveKey -> KillerMoveKey -> Bool # (/=) :: KillerMoveKey -> KillerMoveKey -> Bool # | |
Ord KillerMoveKey Source # | |
Defined in BishBosh.Search.DynamicMoveData compare :: KillerMoveKey -> KillerMoveKey -> Ordering # (<) :: KillerMoveKey -> KillerMoveKey -> Bool # (<=) :: KillerMoveKey -> KillerMoveKey -> Bool # (>) :: KillerMoveKey -> KillerMoveKey -> Bool # (>=) :: KillerMoveKey -> KillerMoveKey -> Bool # max :: KillerMoveKey -> KillerMoveKey -> KillerMoveKey # min :: KillerMoveKey -> KillerMoveKey -> KillerMoveKey # | |
Show KillerMoveKey Source # | |
Defined in BishBosh.Search.DynamicMoveData showsPrec :: Int -> KillerMoveKey -> ShowS # show :: KillerMoveKey -> String # showList :: [KillerMoveKey] -> ShowS # |
data DynamicMoveData positionHash Source #
The data on moves, gathered while searching.
Instances
Empty (DynamicMoveData positionHash) Source # | |
Defined in BishBosh.Search.DynamicMoveData empty :: DynamicMoveData positionHash Source # | |
MaybeEphemeralData (DynamicMoveData positionHash) Source # | |
Defined in BishBosh.Search.DynamicMoveData maybeEuthanise :: NPlies -> MaybeRetireAfterNMoves -> MaybeRetireAfterNMoves -> DynamicMoveData positionHash -> DynamicMoveData positionHash Source # |
Functions
Constructors
mkKillerMoveKeyFromTurn :: Turn -> KillerMoveKey Source #
Constructor.
Mutators
updateKillerMoves :: Transformation KillerMoveKey -> Transformation positionHash Source #
Mutator.
updateTranspositions :: Transformation QualifiedMove positionHash -> Transformation positionHash Source #
Mutator.