public WaitTurnInfo WaitNextTurn(int playerId, int refTurn, ClientCode clientCode) { Game game = accessLiveGame(playerId, clientCode); WaitTurnInfo wi = game.CompletePlayerTurn(playerId, refTurn); if (!wi.TurnComplete) { game.WaitNextTurn(wi); } if (wi.GameFinished) { Thread.Sleep(Settings.LastWaitNextTurnSleepMillis); } return(wi); }