package game import ( "fmt" ) func (gm *Game) runRound() { state, _ := gm.GetState() if state != STATE_IDLE && state != STATE_PLAY && state != STATE_COLLECT { fmt.Println(fmt.Errorf("expected state \"IDLE\" | \"PLAY\" | \"COLLECT\" != \"%s\"", state)) return } err := gm.changeGameState(STATE_ANY, STATE_PLAY, PHASE_SELECT_QUOTE) if err != nil { fmt.Println(err) return } gm.setupRound() gm.notifyClients() }