Пример #1
0
 public static bool DoesCardMatch(Card cardToCheck, Values value)
 {
     if (cardToCheck.Value == value)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Пример #2
0
 public static bool DoesCardMatch(Card cardToCheck, Suits suit)
 {
     if (cardToCheck.Suit == suit)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Пример #3
0
 public void Add(Card cardToAdd)
 {
     cards.Add(cardToAdd);
 }
Пример #4
0
 public void TakeCard(Card card) { cards.Add(card); }