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