예제 #1
0
        public Deck()
        {
            Card newCard;
            theDeck = new List<Card>();

            for (int i = 0; i < 13; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    newCard = new Card(suitNames[j], rankNames[i], suitValues[j], rankValues[i]);
                    theDeck.Add(newCard);
                }
            }
        }
예제 #2
0
 public void AddCard(Card theCard)
 {
     theHand.Add(theCard);
 }