Пример #1
0
        private void btStand_Click(object sender, RoutedEventArgs e)
        {
            game.DealerPlay();
            UpdateUIPlayerCards();

            // Check who won the game
            EndGame(GetGameResult());
        }
Пример #2
0
        public IActionResult Stand()
        {
            // Dealer should finish playing and the UI should be updated
            game.DealerPlay();
            UpdateUIPlayerCards();

            // Check who won the game
            EndGame(GetGameResult());
            return(RedirectToAction("index"));
        }