Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Battlesnakes map[string]Battlesnake
View Source
var GameId string
View Source
var GameType string
View Source
var Height int32
View Source
var HttpClient http.Client
View Source
var Names []string
View Source
var Seed int64
View Source
var Sequential bool
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 ¶
Types ¶
type Battlesnake ¶
type BoardResponse ¶
type BoardResponse struct {
Height int32 `json:"height"`
Width int32 `json:"width"`
Food []Coord `json:"food"`
Hazards []Coord `json:"hazards"`
Snakes []SnakeResponse `json:"snakes"`
}
type GameResponse ¶
type GameResponse struct {
Id string `json:"id"`
Timeout int32 `json:"timeout"`
Ruleset GameResponseRuleset `json:"ruleset"`
}
type GameResponseRuleset ¶ added in v1.0.18
type PingResponse ¶
type PlayerResponse ¶
type ResponsePayload ¶
type ResponsePayload struct {
Game GameResponse `json:"game"`
Turn int32 `json:"turn"`
Board BoardResponse `json:"board"`
You SnakeResponse `json:"you"`
}
Click to show internal directories.
Click to hide internal directories.