class

Experion::TT

Inherits Reference < Object

Constants

FLAG_EXACT = 1_u8
FLAG_LOWER = 2_u8
FLAG_UPPER = 3_u8

Constructors

new(bits : Int32 = 22)
Source

Instance methods

bump_age

Shared across worker threads in think_smp (each searcher's own @tt is the same instance) — must be a real atomic RMW. A plain UInt8 field bumped from multiple threads concurrently can lose increments or hand out a torn read to store's replacement-policy check, both of which are silent correctness bugs, not just noise.

Source
mask
Source
new_game
Source
score_from_tt(score : Int32, ply : Int32) : Int32
Source
score_to_tt(score : Int32, ply : Int32) : Int32

mate scores are stored relative to the node they were found at

Source
size
Source
store(hash : UInt64, move : UInt16, score : Int32, depth : Int32, flags : UInt8) : Nil
Source