Documentation ¶
Index ¶
Constants ¶
View Source
const ( LowerBound = iota // cut-node (fail-high) UpperBound = iota // all-node (fail-low) Exact = iota // pv-node )
Transposition table entry types
Variables ¶
View Source
var DefaultTtableSize int = 512 // 512 MB; can be overridden by user
Functions ¶
func Erase ¶
func Erase(b *dragontoothmg.Board)
func Get ¶
func Get(b *dragontoothmg.Board) (found bool, move dragontoothmg.Move, eval int16, depth int8, ntype uint8)
func Initialize ¶
func Initialize(sizeInMb int)
Initialize (or reinitialize and clear) the table. Must be called before use.
func Put ¶
func Put(b *dragontoothmg.Board, m dragontoothmg.Move, eval int16, depth int8, ntype uint8)
Insert an entry into the transposition table, which requires the board position, the best move, the evaluation score, the entry search depth, and the node type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.