Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battle ¶
type Battle struct { White EnginePool Black EnginePool Book opening.Book Options Options }
type EnginePool ¶
type EnginePool interface { AcquireEngine(ctx context.Context) (*uci.Engine, error) ReleaseEngine(e *uci.Engine) Name() string Close() }
func NewEnginePool ¶
func NewEnginePool(ctx context.Context, log *slog.Logger, o EnginePoolOptions) (EnginePool, error)
type EnginePoolOptions ¶
type EnginePoolOptions struct { ShortName string ExeName string Args []string Options map[string]uci.OptValue EngineOptions uci.EngineOptions CreateTimeout maybe.Maybe[time.Duration] }
func (EnginePoolOptions) Clone ¶
func (o EnginePoolOptions) Clone() EnginePoolOptions
func (*EnginePoolOptions) FillDefaults ¶
func (o *EnginePoolOptions) FillDefaults()
type GameExt ¶
type Options ¶
type Options struct { TimeControl maybe.Maybe[clock.Control] FixedTime maybe.Maybe[time.Duration] DeadlineMargin maybe.Maybe[time.Duration] MaxWaitGameStart maybe.Maybe[time.Duration] MaxWaitStop maybe.Maybe[time.Duration] OutcomeFilter maybe.Maybe[chess.VerdictFilter] // Terminate the game when both sides agree that one of them wins with Score >= ScoreThreshold. // Must be set to zero for no threshold. ScoreThreshold int32 }
func (*Options) FillDefaults ¶
func (o *Options) FillDefaults()
Click to show internal directories.
Click to hide internal directories.