Beispiel #1
0
        private static bool AllCardsAreUnique(OnePairCombination pair1, OnePairCombination pair2)
        {
            var cards = pair1.Cards.Concat(pair2.Cards).ToList();

            return(cards.Distinct().Count() == cards.Count);
        }
 private static bool AllCardsAreUnique(OnePairCombination onePair, SetCombination set)
 {
     return(onePair.Cards.Concat(set.Cards).ToList()
            .Distinct()
            .Count() == 5);
 }