state

package
v0.0.0-...-22fa0d6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameSession

type GameSession struct {
	Mutex *sync.Mutex

	GameOver  bool
	GameBoard [4][4]uint
	// contains filtered or unexported fields
}

func NewGameSession

func NewGameSession(renderNotificationChannel chan bool) *GameSession

NewGameSession produces a ready-to-use session state.

func (*GameSession) Down

func (session *GameSession) Down()

func (*GameSession) Left

func (session *GameSession) Left()

func (*GameSession) Right

func (session *GameSession) Right()

func (*GameSession) Score

func (session *GameSession) Score() uint

func (*GameSession) Up

func (session *GameSession) Up()

Jump to

Keyboard shortcuts

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