Example #1
0
 /** Copy constructor. */
 public CardPile(CardPile other)
 {
     int newNumCards = other.NumCards;
     cards = new List<Card> (newNumCards);
     for (int i = 0; i < newNumCards; i++)
         cards[i] = new Card (other.GetCard (i));
 }