示例#1
0
 /// <summary>
 /// Adds a card to the hand
 /// </summary>
 /// <param name="card">the card to add</param>
 public void AddCard(Card card)
 {
     if (!isDealer || cards.Count != 0)
     {
         card.FlipOver();
     }
     cards.Add(card);
 }
示例#2
0
        /// <summary>
        /// Takes a card from the hand and turns it if face up
        /// </summary>
        /// <returns"card">the card to return</returns>
        public Card Remove()
        {
            Card card = cards.First();

            cards.RemoveAt(0);
            if (card.FaceUp)
            {
                card.FlipOver();
            }
            return(card);
        }