Skip to main content

Crate botstadia_interface

Crate botstadia_interface 

Source
Expand description

BotStadia’s shared contracts.

  • declaration: what an arena says about itself, and its checks
  • payload: the per-turn input and output encoding, and the host’s validity rule for an output
  • archive: the replay archive the player reads
  • metrics: the metrics file the site reads
  • copy: an arena’s arena.toml, its site copy
  • player: the messages between the site and an arena’s player

The WIT worlds ship in wit/: botstadia:arena for arenas’ engines and botstadia:agent for bots. Features generate bindings for them: arena-guest, agent-guest and host.

Modules§

archive
The replay archive: one session’s frames, for the player.
copy
An arena’s arena.toml: its registry row and everything the site says about it that isn’t in the declaration.
declaration
What an arena says about itself.
metrics
The metrics file: everything the site draws about a session, beside its replay archive.
payload
The payload: one binary message per turn, each way.
player
Messages between the site and an arena’s player.