Exemple #1
0
 // Ask dealer for card and save in playerhand
 public void TakeCard(Card dealtCard)
 {
     if (hand == null)
     {
         hand    = new Card[1];
         hand[0] = dealtCard;
     }
     else
     {
         Card[] tempHand = hand;
         hand = new Card[tempHand.Length + 1];
         tempHand.CopyTo(hand, 0);
         hand[hand.GetUpperBound(0)] = dealtCard;
     }
     DetermineScore();
 }