Esempio n. 1
0
        public async Task MakeTurnAndWait()
        {
            gameFieldModel.GameStateInfo = await serverWorker.TaskMakeTurn(Game.IdGame, ChosenTurn);

            while (GameState == GameStateEnum.WAIT)
            {
                if (!NeedsCheckState)
                {
                    return;
                }
                await Task.Delay(1000);

                await gameFieldModel.UpdateGameState();
            }
            gameFieldModel.AddToTrajectory();
        }