Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("resource not found")
Functions ¶
This section is empty.
Types ¶
type Game ¶
type GameFrame ¶
type GameFrame struct { Turn int `json:"Turn"` Food []Point `json:"Food"` Snakes []Snake `json:"Snakes"` Hazards []Point `json:"Hazards"` }
func GetGameFrame ¶
GetGameFrame is commented
type Snake ¶
type Snake struct { ID string `json:"ID"` Name string `json:"Name"` Body []Point `json:"Body"` Health int `json:"Health"` Death *Death `json:"Death"` Color string `json:"Color"` // Hex Code Head string `json:"HeadType"` // https://github.com/BattlesnakeOfficial/board/tree/master/public/images/snake/head Tail string `json:"TailType"` // https://github.com/BattlesnakeOfficial/board/tree/master/public/images/snake/tail }
Click to show internal directories.
Click to hide internal directories.