예제 #1
0
 public void pullCards(int x = 0)
 {
     for (int i = 0; i < noOfCards; i++)
     {
         if (i > noOfCards - 1)
         {
             x++;
             i = 0;
             if (x >= 6)
             {
                 break;
             }
         }
         switch (x)
         {
         case 0:
             //gameDeck[i] = deck.pullCard();
             gameDeck.Add(deck.pullCard());
             //Random_Card.SampleWrittingIntoTextFile(gameDeck[i].ToString());
             break;
         }
     }
 }