gnubg

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy()

func Init

func Init(dataDir fs.FS) error

Types

type EvalInfo

type EvalInfo struct {
	Cubeful bool
	Plies   int
}

type Move

type Move interface {
	GetPlaysNum() int
	GetPlay(i int) [2]int
	GetEvalInfo() EvalInfo
	GetEquity() float32
	GetProbWin() float32
	GetProbWinG() float32
	GetProbWinBG() float32
	GetProbLose() float32
	GetProbLoseG() float32
	GetProbLoseBG() float32
}

type MoveList

type MoveList interface {
	GetMovesNum() int
	GetMove(i int) Move
}

func FindMoves

func FindMoves(board TanBoard, dice [2]int, player int, scoreMoves bool, cubeful bool) (MoveList, error)

type TanBoard

type TanBoard _TanBoard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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