public void Stay() { round_replay.PushAction(0, Player.Hand.GetHighValue(), DealerHand.Cards[1].NumValue); while (DealerShouldHit()) { DealerHand.AddCard(Deck.DrawCard()); } if (DealerHand.HasBlackJack() && !Player.Hand.HasBlackJack()) { EndRound(false); } else if (DealerHand.GetHighValue() > 21) { EndRound(true); } else if (Player.Hand.GetHighValue() >= DealerHand.GetHighValue()) { EndRound(true); } else { EndRound(false); } }
public void BlackJackCheck() { if (Player.Hand.HasBlackJack()) { EndRound(true); } if (DealerHand.HasBlackJack()) { EndRound(false); } }