Exemplo n.º 1
0
        public void NextGame()
        {
            GameMode = Results.Bet;
            PlayerHand.Clear();
            DealerHand.Clear();
            PlayerScore = 0;
            DealerScore = 0;
            _playerAces = 0;
            _dealerAces = 0;
            Bet         = 0;

            PullPlayerCard();
            PullDealerCard();
            PullDealerCard();

            //Check if player has blackjack
            if (PlayerScore == 21)
            {
                Blackjack();
            }

            //Check if insurance applies
            if (DealerScore == 11)
            {
                InsuranceBet();
            }
        }
Exemplo n.º 2
0
 public void NewGame()
 {
     EndVisible = false;
     _hold      = false;
     DealerHand.Clear();
     PlayerHand.Clear();
     DealerHand.Add(PullCard());
     PlayerHand.Add(PullCard());
     UpdateScores();
 }