game

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RIGHT button = 1 + iota
	LEFT
	UP
	DOWN
	QUIT
	RESTART
)

Game actions

Variables

This section is empty.

Functions

This section is empty.

Types

type Game added in v1.0.5

type Game struct {
	// contains filtered or unexported fields
}

func NewGame added in v1.0.5

func NewGame(width int, height int, foodLimit int) *Game

func (*Game) Run added in v1.0.5

func (g *Game) Run()

Run is the function that starts the Game

Jump to

Keyboard shortcuts

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