tei

package
v0.0.0-...-7af1aca Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	DebugPfx string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cmdline []string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) NewGame

func (c *Client) NewGame(size int) (*Player, error)

type Engine

type Engine struct {
	ConfigFactory func(size int) ai.MinimaxConfig
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(in io.Reader, out io.Writer) *Engine

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) error

type Player

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

func (*Player) GetMove

func (p *Player) GetMove(ctx context.Context, pos *tak.Position) tak.Move

func (*Player) TEIGetMove

func (p *Player) TEIGetMove(ctx context.Context, pos *tak.Position, tc *TimeControl) (tak.Move, error)

type TimeControl

type TimeControl struct {
	White time.Duration
	Black time.Duration
	WInc  time.Duration
	BInc  time.Duration
}

Jump to

Keyboard shortcuts

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