agent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() []string

func Register

func Register(name string, f Factory)

Types

type Agent

type Agent interface {
	Name() string

	SelectMove(ctx context.Context, b *chess.Board) (chess.Move, error)
}

func New

func New(name string, opts Options) (Agent, error)

type Factory

type Factory func(opts Options) (Agent, error)

type HumanAgent added in v0.2.0

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

func NewHuman added in v0.2.0

func NewHuman() *HumanAgent

func (*HumanAgent) Name added in v0.2.0

func (a *HumanAgent) Name() string

func (*HumanAgent) SelectMove added in v0.2.0

func (a *HumanAgent) SelectMove(ctx context.Context, b *chess.Board) (chess.Move, error)

func (*HumanAgent) Submit added in v0.2.0

func (a *HumanAgent) Submit(m chess.Move) bool

type Options

type Options struct {
	Seed       int64
	Depth      int
	Width      int
	Iterations int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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