uci

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_UNAVIALABELE int = iota
	STATUS_IDLE
	SATUS_BUSY
)
View Source
const (
	C_UCI = "uci"
	// C_DEBUG      = "debug" // on | off.
	C_IS_READY   = "isready"
	C_SET_OPTION = "setoption" // name [value]
	C_POSITION   = "position"  // [ fen | startpos] moves ...
	C_GO         = "go"        // many opts
	C_STOP       = "stop"
	C_PONDERHIT  = "ponderhit"
	C_QUIT       = "quit"
	C_NEW_GAME   = "ucinewgame"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clear

type Clear struct{}

func (*Clear) Info

func (o *Clear) Info()

func (*Clear) Set

func (o *Clear) Set(e *eval.EvalEngine)

type Go

type Go struct {
	// contains filtered or unexported fields
}

func (*Go) Exec

func (c *Go) Exec(e *eval.EvalEngine) bool

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

func (*Hash) Info

func (o *Hash) Info()

func (*Hash) Set

func (o *Hash) Set(e *eval.EvalEngine)

type IsReady

type IsReady struct{}

func (*IsReady) Exec

func (c *IsReady) Exec(e *eval.EvalEngine) bool

type MoveOverhead

type MoveOverhead struct {
	// contains filtered or unexported fields
}

func (*MoveOverhead) Info

func (o *MoveOverhead) Info()

func (*MoveOverhead) Set

func (o *MoveOverhead) Set(e *eval.EvalEngine)

type NewGame

type NewGame struct{}

func (*NewGame) Exec

func (c *NewGame) Exec(e *eval.EvalEngine) bool

type OwnBook

type OwnBook struct {
	// contains filtered or unexported fields
}

func (*OwnBook) Info

func (o *OwnBook) Info()

func (*OwnBook) Set

func (o *OwnBook) Set(e *eval.EvalEngine)

type Ponder

type Ponder struct {
	// contains filtered or unexported fields
}

func (*Ponder) Info

func (o *Ponder) Info()

func (*Ponder) Set

func (o *Ponder) Set(e *eval.EvalEngine)

type Position

type Position struct {
	// contains filtered or unexported fields
}

func (*Position) Exec

func (c *Position) Exec(e *eval.EvalEngine) bool

type Quit

type Quit struct{}

func (*Quit) Exec

func (c *Quit) Exec(e *eval.EvalEngine) bool

type SetOption

type SetOption struct {
	// contains filtered or unexported fields
}

func (*SetOption) Exec

func (c *SetOption) Exec(e *eval.EvalEngine) bool

type Stop

type Stop struct {
	// contains filtered or unexported fields
}

func (*Stop) Exec

func (c *Stop) Exec(e *eval.EvalEngine) bool

type UCI

type UCI struct{}

func (*UCI) Exec

func (c *UCI) Exec(e *eval.EvalEngine) bool

type UCICmd

type UCICmd interface {
	Exec(*eval.EvalEngine) bool
}

func ParseUCI

func ParseUCI(uciCmd string) UCICmd

Parse uci command and return executable UCICmd on successful parse or nil.

type UCIOpt

type UCIOpt interface {
	Info()
	Set(e *eval.EvalEngine)
}

type UCIOpts

type UCIOpts struct {
	Hash    int
	Ponder  bool
	OwnBook bool
}

type UCI_CMD

type UCI_CMD string

Jump to

Keyboard shortcuts

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