field

package
v0.0.0-...-19f3900 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fight

func Fight(ctx context.Context, o Options, c Config) (stat.Status, error)

Types

type Config

type Config struct {
	Writer  WriterConfig
	Book    opening.Book
	First   battle.EnginePool
	Second  battle.EnginePool
	Watcher Watcher
}

type Options

type Options struct {
	Jobs   int
	Games  int
	Battle battle.Options
}

type Watcher

type Watcher func(s stat.Status, warn battle.Warnings)

type Writer

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

func NewWriter

func NewWriter(c WriterConfig) *Writer

func (*Writer) Finish

func (w *Writer) Finish() error

func (*Writer) WriteGame

func (w *Writer) WriteGame(g *battle.GameExt)

type WriterConfig

type WriterConfig struct {
	PGN  io.Writer
	SGS  io.Writer
	Opts WriterOptions
}

type WriterOptions

type WriterOptions struct {
	NoFlushAfterWrite bool
}

Jump to

Keyboard shortcuts

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