예제 #1
0
 /// <summary>
 /// Draws cards from a deck and adds them to the deck viewer
 /// </summary>
 /// <param name="deck">The deck to draw from</param>
 /// <param name="numberOfCards">The number of cards to draw</param>
 public void DrawCards(Deck deck, int numberOfCards)
 {
     for (int i = 0; i < numberOfCards; i++)
     {
         Card card = deck.DrawCard();
         this.AddCard(card);
     }
 }
예제 #2
0
 public void AddCards(Deck deck, int numberOfCards)
 {
     for (int i = 0; i < numberOfCards; i++)
     {
         Card card = deck.DrawCard();
         this.AddCard(card, false);
     }
     AdjustCards();
 }