uci

package
v0.91.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package uci contains a driver for using the engine under the UCI protocol.

See: http://wbec-ridderkerk.nl/html/UCIProtocol.html See: https://en.wikipedia.org/wiki/Universal_Chess_Interface

Index

Constants

View Source
const ProtocolName = "uci"

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	iox.AsyncCloser
	// contains filtered or unexported fields
}

Driver implements a UCI driver for an engine. It is activated if sent "uci".

func NewDriver

func NewDriver(ctx context.Context, e *engine.Engine, in <-chan string, opts ...Option) (*Driver, <-chan string)

type Option

type Option func(*options)

Option is an UCI driver option.

func UseBook

func UseBook(book engine.Book, seed int64) Option

UseBook instructs the driver to use the given opening book.

Jump to

Keyboard shortcuts

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