Discover Packages
github.com/corverroos/bsrules
cli
commands
package
Version:
v1.0.18-0...-db82f67
Opens a new window with list of versions in this module.
Published: Jun 25, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BoardResponse struct {
Height int32 `json:"height"`
Width int32 `json:"width"`
Food []Coord `json:"food"`
Hazards []Coord `json:"hazards"`
Snakes []SnakeResponse `json:"snakes"`
}
type Coord struct {
X int32 `json:"x"`
Y int32 `json:"y"`
}
type GameResponse struct {
Id string `json:"id"`
Timeout int32 `json:"timeout"`
}
type InfoResponse struct {
Author string `json:"author"`
Color string `json:"color"`
Head string `json:"head"`
Tail string `json:"tail"`
Meta interface{} `json:"meta"`
}
type PingResponse struct {
APIVersion string `json:"apiversion"`
Author string `json:"author"`
Color string `json:"color"`
Head string `json:"head"`
Tail string `json:"tail"`
Version string `json:"version"`
}
type PlayerResponse struct {
Move string `json:"move"`
Shout string `json:"shout"`
}
type SnakeResponse struct {
Id string `json:"id"`
Name string `json:"name"`
Health int32 `json:"health"`
Body []Coord `json:"body"`
Latency string `json:"latency"`
Head Coord `json:"head"`
Length int32 `json:"length"`
Shout string `json:"shout"`
Squad string `json:"squad"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.