Exemplo n.º 1
0
        public static List <PlayingCard> DealNCards(PlayingCardDeck deck, int count)
        {
            var dealtCards = new List <PlayingCard>();

            for (int i = 0; i < count; i++)
            {
                PlayingCard temp = deck.Cards[deck.Cards.Count - 1];
                dealtCards.Add(temp);
                deck.Cards.Remove(temp);
            }
            return(dealtCards);
        }
Exemplo n.º 2
0
 public static void AddCardToBottom(PlayingCardDeck deck, PlayingCard card) => deck.Cards.Insert(0, card);