Ejemplo n.º 1
0
        private void btStand_Click(object sender, RoutedEventArgs e)
        {
            game.DealerPlay();
            UpdateUIPlayerCards();

            // Check who won the game
            EndGame(GetGameResult());
        }
Ejemplo n.º 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"));
        }