Discover Packages
github.com/battlesnakeio/engine
worker
package
Version:
v0.2.22
Opens a new window with list of versions in this module.
Published: Feb 28, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package worker provides the actual running of games. It is the core of the
engine and game logic. It interacts primarily with the controller API writing
and reading game state.
Runner will run an invidual game to completion. It takes a game id and a
connection to the controller as arguments.
Worker is the worker interface. It wraps a main Perform functions which is
where all of the game logic should live.
Run will run the worker in a loop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.