private void btStand_Click(object sender, RoutedEventArgs e) { game.DealerPlay(); UpdateUIPlayerCards(); // Check who won the game EndGame(GetGameResult()); }
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")); }