game

package
v0.0.0-...-18a6d60 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Side = 4

Size of game board is Side X Side cells

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

func New

func New() *Game

func (*Game) Board

func (g *Game) Board() [][]uint

func (*Game) GameOver

func (g *Game) GameOver() bool

func (*Game) MoveDown

func (g *Game) MoveDown()

func (*Game) MoveLeft

func (g *Game) MoveLeft()

func (*Game) MoveRight

func (g *Game) MoveRight()

func (*Game) MoveUp

func (g *Game) MoveUp()

func (*Game) Reset

func (g *Game) Reset()

func (*Game) Score

func (g *Game) Score() uint

Jump to

Keyboard shortcuts

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