public void Stand() { if (Result == GameResult.Pending) { while (Operate.DoesDealerHit(Dealer.Hand)) { Dealer.Hand.Add(MainDeck.First()); MainDeck.RemoveAt(0); } } Result = Operate.CheckResult(Player, Dealer); }
public void Hit() { if (Operate.IsHitPossible(Player.Hand) && Result == GameResult.Pending) { Player.Hand.Add(MainDeck.First()); MainDeck.RemoveAt(0); if (!Operate.IsHitPossible(Player.Hand)) { this.Stand(); } } }