Documentation
¶
Index ¶
Constants ¶
View Source
const N = 5
add food every N moves
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameUI ¶
type GameUI struct { Snakes map[peer.ID]*Snake Food map[int]core.Coord AliveSnakes int Over bool Successful bool WinnerID peer.ID // contains filtered or unexported fields }
func NewGame ¶
func NewGame(gi *game.GameInstance) *GameUI
type GatherUI ¶
type GatherUI struct {
// contains filtered or unexported fields
}
func NewGatherUI ¶
Click to show internal directories.
Click to hide internal directories.