Example #1
0
        private void EndGame()
        {
            int dealerTotal = BlackJackController.GetTotal("", false, true);

            DealerTotal.Content = $":{dealerTotal}";
            for (int i = 0; i < NumPlayers; i++)
            {
                string name = PlayerNameDisplays[i].Content.ToString();
                int    bank = BlackJackController.PayoutForBankOnAPlayer(name);
                PlayerBankDisplays[i].Content = $"${bank}";
            }
        }