Created
October 8, 2013 19:40
-
-
Save misterspeedy/6890347 to your computer and use it in GitHub Desktop.
Partial active pattern for Royal Flush
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (|RoyalFlush|_|) (hand : Hand) = | |
if (hand.Cards.[0].Rank) = Ace && (Consecutive hand.Cards) && (SameSuit hand.Cards) then | |
RoyalFlush |> Some | |
else | |
None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment