Exemplo n.º 1
0
        /// <summary>
        /// Deal card, if deck is empty go to next deck
        /// </summary>
        /// <returns></returns>
        public Card DealCard()
        {
            Card card = new Card();

            DeckCommands deck = GetNextDeck();

            if (deck.GetCardsLeftInDeck() > 0)
            {
                card = deck.GetCard();
            }

            return(card);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Deal a hidden card
        /// </summary>
        /// <returns></returns>
        public Card DealHiddenCard()
        {
            Card card = new Card();

            DeckCommands deck = GetNextDeck();

            if (deck.GetCardsLeftInDeck() > 0)
            {
                card          = deck.GetCard();
                card.HideCard = true;
            }

            return(card);
        }