예제 #1
0
        static void Main(string[] args)
        {
            Card cardToCheck = new Card(Suits.Clubs, Values.Three);
            bool doesItMatch = Card.DoesCardMatch(cardToCheck, Suits.Hearts);
            Console.WriteLine(doesItMatch);

            Console.ReadKey();
        }
예제 #2
0
 public static bool DoesCardMatch(Card cardToCheck, Values value)
 {
     if (cardToCheck.Value == value)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
예제 #3
0
 public static bool DoesCardMatch(Card cardToCheck, Suits suit)
 {
     if (cardToCheck.Suit == suit)
     {
         return true;
     }
     else
     {
         return false;
     }
 }