Having this issue of my fullHouse function = true when there's a three-of-a-kind. The function checks for a 3 of a kind and a pair but it satisfies the logic with just a three of a kind (D, Ace)(C, Ace)(S, Ace)(D, Ten)(D, 9). This isn't a full house but it's allowing the same 3 aces to satisfy both the pair AND the 3 of a kind.
How do I restrict this so it cannot reduce the 3 of a kind into a pair?
Thanks!
EDIT: F# Newbie
EDIT_2: A full house is when out of your hand of 5 cards you have a 3 of a kind (3 of the same value (suit doesn't matter but they have to be 3x aces or 3x tens etc)) AND a pair (2x ten's, 2x 8's etc - suit doesn't matter)
Input:
fullHouse [(D, K);(C, K);(S, K);(D, T);(D, V 9)];;
Expected output: False, Actual output: True
Input:
fullHouse [(D, K);(C, K);(S, K);(D, T);(C, T)];;
Expected output: True, Actual Output: True