transposition

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NoneDepth = -6

Variables

This section is empty.

Functions

func ValueFromTrans

func ValueFromTrans(value int16, height int) int16

func ValueToTrans

func ValueToTrans(value int, height int) int16

Types

type TranspositionTable

type TranspositionTable struct {
	Entries []transEntry
	Mask    uint64
}
var GlobalTransTable TranspositionTable

func NewTransTable

func NewTransTable(megabytes int) TranspositionTable

func (*TranspositionTable) Clear

func (t *TranspositionTable) Clear()

func (*TranspositionTable) Get

func (t *TranspositionTable) Get(key uint64) (ok bool, value int16, eval int16, depth int16, move backend.Move, flag uint8, pvNode bool)

func (*TranspositionTable) Prefetch

func (t *TranspositionTable) Prefetch(key uint64)

func (*TranspositionTable) Set

func (t *TranspositionTable) Set(key uint64, value int16, eval int16, depth int, bestMove backend.Move, flag int, pvNode bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL