commands

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: AGPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugRequests bool
View Source
var FoodSpawnChance int32
View Source
var GameId string
View Source
var GameType string
View Source
var HazardDamagePerTurn int32
View Source
var Height int32
View Source
var HttpClient http.Client
View Source
var MinimumFood int32
View Source
var Names []string
View Source
var Seed int64
View Source
var Sequential bool
View Source
var ShrinkEveryNTurns int32
View Source
var Squads []string
View Source
var Timeout int32
View Source
var Turn int32
View Source
var TurnDelay int32
View Source
var URLs []string
View Source
var ViewMap bool
View Source
var Width int32

Functions

func Execute

func Execute()

Types

type SnakeState added in v1.0.23

type SnakeState struct {
	URL       string
	Name      string
	ID        string
	LastMove  string
	Squad     string
	Character rune
	Color     string
	Head      string
	Tail      string
}

Used to store state for each SnakeState while running a local game

Jump to

Keyboard shortcuts

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