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 Diagnostic ¶
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 AllowPushedEvents(bool) }
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. |
Click to show internal directories.
Click to hide internal directories.