uci

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package uci handles a running UCI engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UCI

type UCI struct {

	// submitting the empty string as a move is effectively saying to analyse
	// the current position
	SubmitMove chan string

	// once a move has been submitted the best move will be returned on this
	// channel
	GetMove chan string

	// end the UCI program. the UCI should not be restarted after it has quit
	Quit chan bool
	// contains filtered or unexported fields
}

UCI handles a running UCI engine, accepts move and offers the best move to play next.

func NewUCI

func NewUCI(pathToEngine string, diagnostic chan bots.Diagnostic) (*UCI, error)

NewUCI prepares and launches a new UCI engine.

func (*UCI) Start

func (uci *UCI) Start() error

Start communication with the UCI engine.

Jump to

Keyboard shortcuts

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