knowyt/server/src/game/startGame.go
2022-04-03 21:20:32 +02:00

20 lines
251 B
Go

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