Beispiel #1
0
        public async Task PlayerFirst()
        {
            //Player's part
            AddInfoLabel.Content = $"Waiting for the {PlayerHum.Name}'s move.";

            var plrMove = await PlayersShot();

            MoveTask = null;

            HOS.OutputTheHit(PlayerShotInfo, plrMove, PlayerHum, PlayerPC);
            Rounds.Add(new Round(plrMove, null));

            MovesGrid.Items.Refresh();
            AddInfoLabel.Content = "";

            //Computer's part
            var pcMove = CurrentGame.ComputerMove();

            HOS.OutputTheHit(PCShotInfo, pcMove, PlayerPC, PlayerHum);
            Rounds.Last().ComputerMove = pcMove;
            MovesGrid.Items.Refresh();
        }