bots

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package bots is the root package for the bot subsystem. Bots are loaded and unloaded by the Wrangler package.

Bots monitor audio and video through the AudioMixer and PixelRenderer interfaces. They issue input to the emulation through the input.PushEvent() mechanism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	BotID() string
	Quit()
	Feedback() *Feedback
}

Bot defines the functions the all bots must implement.

type Diagnostic

type Diagnostic struct {
	Group      string
	Diagnostic string
}

Diagnostic instances are sent over the Feedback Diagnostic channel.

type Feedback

type Feedback struct {
	// consumers of the Images channel should probably only show one frame at a
	// time so a buffer size of 1 is probably sufficient
	Images chan *image.RGBA

	// buffer length of the Log channel should be sufficient long for the bot
	Diagnostic chan Diagnostic
}

Feedback defines the channels that can be used to retrieve information from a running bot.

type Input

type Input interface {
	PushEvent(ports.InputEvent) error
}

Input defines the Input functions required by a bot.

type TV

type TV interface {
	AddPixelRenderer(television.PixelRenderer)
	AddAudioMixer(television.AudioMixer)
	RemovePixelRenderer(television.PixelRenderer)
	RemoveAudioMixer(television.AudioMixer)
}

TV defines the television functions required by a bot.

Directories

Path Synopsis
Package chess contains the bots that can play the various chess games available on the Atari2600.
Package chess contains the bots that can play the various chess games available on the Atari2600.
uci
Package uci handles a running UCI engine.
Package uci handles a running UCI engine.
Package spacejockey is a bot capable of playing Space Jockey.
Package spacejockey is a bot capable of playing Space Jockey.
Package wrangler keeps track of the running bot and handles the activating and termination of running bots.
Package wrangler keeps track of the running bot and handles the activating and termination of running bots.

Jump to

Keyboard shortcuts

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