Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Utils.TranspositionTable
Documentation
type TTable = IOVector StorableTEntry Source #
Constructors
TEntry | |
Instances
Arbitrary TEntry Source # | |
Generic TEntry Source # | |
Show TEntry Source # | |
Eq TEntry Source # | |
type Rep TEntry Source # | |
Defined in Utils.TranspositionTable type Rep TEntry = D1 ('MetaData "TEntry" "Utils.TranspositionTable" "turncoat-1.0-BDrXmRgtWtGJ5suStov8kN" 'False) (C1 ('MetaCons "TEntry" 'PrefixI 'True) ((S1 ('MetaSel ('Just "zobristKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ZKey) :*: (S1 ('MetaSel ('Just "bestMove") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Move)) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Score))) :*: (S1 ('MetaSel ('Just "depth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Depth) :*: (S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NodeType) :*: S1 ('MetaSel ('Just "age") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Age))))) |
data StorableTEntry Source #
Constructors
StorableTEntry | |
Fields
|
Instances
Generic StorableTEntry Source # | |
Defined in Utils.TranspositionTable Associated Types type Rep StorableTEntry :: Type -> Type # Methods from :: StorableTEntry -> Rep StorableTEntry x # to :: Rep StorableTEntry x -> StorableTEntry # | |
GStorable StorableTEntry Source # | |
Defined in Utils.TranspositionTable Methods gsizeOf :: StorableTEntry -> Int # galignment :: StorableTEntry -> Int # gpeekByteOff :: Ptr b -> Int -> IO StorableTEntry # gpokeByteOff :: Ptr b -> Int -> StorableTEntry -> IO () # | |
type Rep StorableTEntry Source # | |
Defined in Utils.TranspositionTable type Rep StorableTEntry = D1 ('MetaData "StorableTEntry" "Utils.TranspositionTable" "turncoat-1.0-BDrXmRgtWtGJ5suStov8kN" 'False) (C1 ('MetaCons "StorableTEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "zobristKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ZKey) :*: S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word64))) |
tTableSize :: (?opts :: EngineOptions) => Word64 Source #
encodeTEntry :: TEntry -> StorableTEntry Source #
decodeTEntry :: StorableTEntry -> Maybe TEntry Source #
lookupEntry :: (?tTable :: TTable, ?opts :: EngineOptions) => ZKey -> IO (Maybe TEntry) Source #
lookupScore :: (?tTable :: TTable, ?opts :: EngineOptions) => Score -> Score -> Depth -> ZKey -> IO (Maybe (Score, Maybe Move)) Source #
lookupBestMove :: (?tTable :: TTable, ?opts :: EngineOptions) => ZKey -> IO (Maybe Move) Source #