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()
Click to show internal directories.
Click to hide internal directories.