uciInterface

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package uciInterface defines the functions necessary to be implemented in a class to be used as a uci handler for the search class. This is necessary as GO does not allow circular imports. uci is importing Search to hold an instance of Search and Search needs a call back reference to a uci handler to be able to send UCI information to the UCI ui.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UciDriver

type UciDriver interface {
	SendReadyOk()
	SendInfoString(info string)
	SendIterationEndInfo(depth int, seldepth int, value types.Value, nodes uint64, nps uint64, time time.Duration, pv moveslice.MoveSlice)
	SendAspirationResearchInfo(depth int, seldepth int, value types.Value, bound string, nodes uint64, nps uint64, time time.Duration, pv moveslice.MoveSlice)
	SendCurrentRootMove(currMove types.Move, moveNumber int)
	SendSearchUpdate(depth int, seldepth int, nodes uint64, nps uint64, time time.Duration, hashfull int)
	SendCurrentLine(moveList moveslice.MoveSlice)
	SendResult(bestMove types.Move, ponderMove types.Move)
}

UciDriver the defines an interface for the search to be able to send uci protocol messages through a uciHandler which implements this interface

Jump to

Keyboard shortcuts

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