예제 #1
0
        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);
        }