Пример #1
0
        private int refreshDeck(DiscardDeck discardDeck)
        {
            Console.WriteLine("Refreshing the Draw Deck...");
            int cardsLeftInDeck = CardDeck.Count;

            int       discardDeckTopCardIndex = discardDeck.topCardIndex();
            BasicCard discardDeckTopCard      = discardDeck.CardDeck[discardDeckTopCardIndex];

            discardDeck.removeCard(discardDeckTopCardIndex);

            CardDeck.AddRange(discardDeck.CardDeck);
            shuffle();
            discardDeck.CardDeck.RemoveRange(0, discardDeck.CardDeck.Count);

            discardDeck.CardDeck.Add(discardDeckTopCard);

            return(cardsLeftInDeck);
        }