示例#1
0
        /// <summary>
        /// Facade method to Draw a card
        /// </summary>
        /// <param name="deck">Deck</param>
        public void UserPlaysCard(Deck deck)
        {
            Card card = deck.playCard();

            if (card == null)
            {
                Console.WriteLine("\nDeck is empty. Please reset the Deck.");
            }
            else
            {
                Console.WriteLine("\n{0} of {1}", card.Number, card.Suit);
                Console.WriteLine("Current number of cards in Deck is {0}", deck.getCurrentCardCount());
            }
        }