knowyt/server/src/game/startGame.go
2021-08-15 17:43:00 +02:00

19 lines
251 B
Go

package game
import (
"fmt"
)
func (gm *Game) StartGame() {
// go gm.runCountdown()
go gm.runRound()
}
func (gm *Game) ResetGame() {
err := gm.changeGameState(STATE_ANY, STATE_IDLE, PHASE_NONE)
if err != nil {
fmt.Println(err)
return
}
}