Versions in this module Expand all Collapse all v2 v2.0.0 Dec 18, 2024 Changes in this version + var CmdIsReady = cmdNoOptions + var CmdPonderHit = cmdNoOptions + var CmdQuit = cmdNoOptions + var CmdStop = cmdNoOptions + var CmdUCI = cmdNoOptions + var CmdUCINewGame = cmdNoOptions + func Debug(e *Engine) + func Logger(logger *log.Logger) func(e *Engine) + type Cmd interface + ProcessResponse func(e *Engine) error + type CmdGo struct + BlackIncrement time.Duration + BlackTime time.Duration + Depth int + Infinite bool + Mate int + MoveTime time.Duration + MovesToGo int + Nodes int + Ponder bool + SearchMoves []*chess.Move + WhiteIncrement time.Duration + WhiteTime time.Duration + func (CmdGo) ProcessResponse(e *Engine) error + func (cmd CmdGo) String() string + type CmdPosition struct + Moves []*chess.Move + Position *chess.Position + func (CmdPosition) ProcessResponse(_ *Engine) error + func (cmd CmdPosition) String() string + type CmdSetOption struct + Name string + Value string + func (cmd CmdSetOption) ProcessResponse(_ *Engine) error + func (cmd CmdSetOption) String() string + type Engine struct + func New(path string, opts ...func(e *Engine)) (*Engine, error) + func (e *Engine) Close() error + func (e *Engine) ID() map[string]string + func (e *Engine) Options() map[string]Option + func (e *Engine) Run(cmds ...Cmd) error + func (e *Engine) SearchResults() SearchResults + type Info struct + CPULoad int + CurrentMove *chess.Move + CurrentMoveNumber int + Depth int + Hashfull int + Multipv int + NPS int + Nodes int + PV []*chess.Move + Score Score + Seldepth int + TBHits int + Time time.Duration + func (info *Info) UnmarshalText(text []byte) error + type Option struct + Default string + Max string + Min string + Name string + Type OptionType + Vars []string + func (o *Option) UnmarshalText(text []byte) error + type OptionType string + const OptionButton + const OptionCheck + const OptionCombo + const OptionNoType + const OptionSpin + const OptionString + type Score struct + CP int + LowerBound bool + Mate int + UpperBound bool + type SearchResults struct + BestMove *chess.Move + Info Info + Ponder *chess.Move v2.0.0-beta.5 Dec 17, 2024 v2.0.0-beta.4 Dec 13, 2024 v2.0.0-beta.3 Dec 13, 2024 v2.0.0-beta.2 Nov 13, 2024 v2.0.0-beta.1 Nov 13, 2024