Exemplo n.º 1
0
 public void GiveCards(Player player, Dealer dealer)
 {
     player.PlayerHand.Clear();
     dealer.DealerHand.Clear();
     dealer.GetCardToDealer();
     player.GetCard(dealer.GiveCard());
     player.GetCard(dealer.GiveCard());
 }
Exemplo n.º 2
0
        public bool HitMe(Player player, Dealer dealer, bool split)
        {
            player.GetCard(dealer.GiveCard());

            if (Rules.NotOver21(StaticMethods.CountValue(PlayerHand)))
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 3
0
 private void _pickCard_Click(object sender, EventArgs e)
 {
     if (ValidBet)
     {
         player.GetCard(dealer.GiveCard());
         Update();
         PlayerCardValue = StaticMethods.CountValue(player.ShowPlayerHand());
         if (PlayerCardValue > 21)
         {
             Loose();
         }
     }
 }