freego_api/session.go

22 lines
360 B
Go
Raw Normal View History

2022-03-03 13:28:00 -05:00
package main
import "git.saintnet.tech/freego"
//Session represents an active game
type Session struct {
simulator *freego.Game
redReady bool
blueReady bool
moveNum int
}
//NewSession creates a new game session
func NewSession() *Session {
return &Session{
simulator: freego.NewGame(),
redReady: false,
blueReady: false,
moveNum: 0,
}
}