Пример #1
0
        // Remove a card from the Deck
        // Calls VerifyIndexEntered() prior to removing the card
        public static void RemoveTheCard(Deck <Card> myDeck)
        {
            Console.WriteLine(
                "What is the index of the card you want to remove? " +
                "(Indexing starts at zero.)");
            string inputIndex = Console.ReadLine();
            int    cardIndex  = VerifyIndexEntered(inputIndex);

            myDeck.RemoveCard(cardIndex);
        }