示例#1
0
 /*
  * A discard stack may be used in order to keep track of the remaining unused cards, otherwise drawn cards return to the bottom of play stack.
  */
 public AbstractPlayingCardsDeck(int numberOfDecks, bool useDiscardStack)
 {
     DrawStack = new CardQueue(numberOfDecks);
     if (useDiscardStack)
     {
         DiscardStack    = new CardQueue();
         UseDiscardStack = useDiscardStack;
     }
     Shuffle(1);
 }
示例#2
0
 public void GetNewDeck(int numberOfDecks, bool useDiscardStack)
 {
     _LastDrawnCard = null;
     DrawStack      = new CardQueue(numberOfDecks);
     if (useDiscardStack)
     {
         DiscardStack    = new CardQueue();
         UseDiscardStack = useDiscardStack;
     }
 }