public void GiveCards(Player player, Dealer dealer) { player.PlayerHand.Clear(); dealer.DealerHand.Clear(); dealer.GetCardToDealer(); player.GetCard(dealer.GiveCard()); player.GetCard(dealer.GiveCard()); }
public bool HitMe(Player player, Dealer dealer, bool split) { player.GetCard(dealer.GiveCard()); if (Rules.NotOver21(StaticMethods.CountValue(PlayerHand))) { return(true); } return(false); }
private void _pickCard_Click(object sender, EventArgs e) { if (ValidBet) { player.GetCard(dealer.GiveCard()); Update(); PlayerCardValue = StaticMethods.CountValue(player.ShowPlayerHand()); if (PlayerCardValue > 21) { Loose(); } } }