/// <summary> /// /// </summary> public void startNewRound() { dealer.first_deal(players); resetCurrentHand(); if (!players[cur_player].IsActive) { findNextActivePlayer(); } currentHand.check(); }
}// end function public void completesHand() { // show dealer bottom card form_controls.flipDealerCard(hands[0].cards[0].card_front); BlackjackHand currentHand = hands[0]; hands[0].cards[0].IsFaceDown = false; // check hand for blackjack or bust currentHand.check(); // dealer takes hit until sum of cards is at least 17 while (currentHand.Sum < 17) { //hitSelf(); dealCard(this, 0); currentHand.check(); } } // close function