Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
         }
     }
 }