private void StartAHand(int betsize) { ResetImages(); BetButtonsEnabled(false); PlayButtonsEnabled(true); BackButton.IsEnabled = false; bet = betsize; deck = new Deck(); yourHand = new BlackjackHand(deck.Draw()); dealerHand = new BlackjackHand(deck.Draw()); yourHand.Hit(deck.Draw()); DisplayCards(); CheckResult(); }
public void StartAHand(int bet) { this.bet = bet; ResetImages(); BetButtonsEnabled(false); PlayButtonsEnabled(true); BackButton.IsEnabled = false; deck = new Deck(); cards = new Card[5]; for (int i = 0; i < 5; i++) { cards[i] = deck.Draw(); } DisplayCards(); }