turncoat-1.0: Elegant UCI chess engine
Safe HaskellSafe-Inferred
LanguageGHC2021

Utils.TranspositionTable

Documentation

type TTable = IOVector StorableTEntry Source #

data TEntry Source #

Constructors

TEntry 

Instances

Instances details
Arbitrary TEntry Source # 
Instance details

Defined in Utils.TranspositionTable

Generic TEntry Source # 
Instance details

Defined in Utils.TranspositionTable

Associated Types

type Rep TEntry :: Type -> Type #

Methods

from :: TEntry -> Rep TEntry x #

to :: Rep TEntry x -> TEntry #

Show TEntry Source # 
Instance details

Defined in Utils.TranspositionTable

Eq TEntry Source # 
Instance details

Defined in Utils.TranspositionTable

Methods

(==) :: TEntry -> TEntry -> Bool #

(/=) :: TEntry -> TEntry -> Bool #

type Rep TEntry Source # 
Instance details

Defined in Utils.TranspositionTable

data StorableTEntry Source #

Constructors

StorableTEntry 

Fields

Instances

Instances details
Generic StorableTEntry Source # 
Instance details

Defined in Utils.TranspositionTable

Associated Types

type Rep StorableTEntry :: Type -> Type #

GStorable StorableTEntry Source # 
Instance details

Defined in Utils.TranspositionTable

type Rep StorableTEntry Source # 
Instance details

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)))

hashZKey :: (?opts :: EngineOptions) => ZKey -> Int 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 #

insert :: (?tTable :: TTable, ?opts :: EngineOptions) => ZKey -> TEntry -> IO () Source #