fathom

package
v0.0.0-...-72ff806 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

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 ProbeDTZ

func ProbeDTZ(pos *Position) Move

func ProbeWDL

func ProbeWDL(pos *Position, depth int8) uint32

func SetSyzygyPath

func SetSyzygyPath(path string)

func TB_GET_DTZ

func TB_GET_DTZ(res uint32) uint32

func TB_GET_EP

func TB_GET_EP(res uint32) uint32

func TB_GET_FROM

func TB_GET_FROM(res uint32) uint32

func TB_GET_PROMOTES

func TB_GET_PROMOTES(res uint32) uint32

func TB_GET_TO

func TB_GET_TO(res uint32) uint32

func TB_GET_WDL

func TB_GET_WDL(res uint32) uint32

func TB_SET_WDL

func TB_SET_WDL(_res, _wdl uint32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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