Documentation ¶
Index ¶
- Constants
- Variables
- func ClearSyzygy()
- func ProbeDTZ(pos *Position) Move
- func ProbeWDL(pos *Position, depth int8) uint32
- func SetSyzygyPath(path string)
- func TB_GET_DTZ(res uint32) uint32
- func TB_GET_EP(res uint32) uint32
- func TB_GET_FROM(res uint32) uint32
- func TB_GET_PROMOTES(res uint32) uint32
- func TB_GET_TO(res uint32) uint32
- func TB_GET_WDL(res uint32) uint32
- func TB_SET_WDL(_res, _wdl uint32) uint32
Constants ¶
View Source
const ( TB_LOSS uint32 = 0 /* LOSS */ TB_BLESSED_LOSS uint32 = 1 /* LOSS but 50-move draw */ TB_DRAW uint32 = 2 /* DRAW */ TB_CURSED_WIN uint32 = 3 /* WIN but 50-move draw */ TB_WIN uint32 = 4 /* WIN */ TB_RESULT_FAILED uint32 = 0xFFFFFFFF )
View Source
const DefaultProbeDepth = 0
View Source
const TB_RESULT_DTZ_MASK uint32 = 0xFFF00000
View Source
const TB_RESULT_DTZ_SHIFT uint32 = 20
View Source
const TB_RESULT_EP_MASK uint32 = 0x00080000
View Source
const TB_RESULT_EP_SHIFT uint32 = 19
View Source
const TB_RESULT_FROM_MASK uint32 = 0x0000FC00
View Source
const TB_RESULT_FROM_SHIFT uint32 = 10
View Source
const TB_RESULT_PROMOTES_MASK uint32 = 0x00070000
View Source
const TB_RESULT_PROMOTES_SHIFT uint32 = 16
View Source
const TB_RESULT_TO_MASK uint32 = 0x000003F0
View Source
const TB_RESULT_TO_SHIFT uint32 = 4
View Source
const TB_RESULT_WDL_MASK uint32 = 0x0000000F
View Source
const TB_RESULT_WDL_SHIFT uint32 = 0
Variables ¶
View Source
var MaxPieceCount = 0
View Source
var MinProbeDepth int8 = DefaultProbeDepth
View Source
var TB_RESULT_CHECKMATE = TB_SET_WDL(0, TB_WIN)
View Source
var TB_RESULT_STALEMATE = TB_SET_WDL(0, TB_DRAW)
Functions ¶
func ClearSyzygy ¶
func ClearSyzygy()
func SetSyzygyPath ¶
func SetSyzygyPath(path string)
func TB_GET_DTZ ¶
func TB_GET_FROM ¶
func TB_GET_PROMOTES ¶
func TB_GET_WDL ¶
func TB_SET_WDL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.