Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cond do
- suits |> Helper.same_suit? && ranks |> Helper.consecutive_ranks? ->
- :straight_flush
- ranks |> Helper.x_of_a_kind?(4) ->
- :four_of_a_kind
- ranks |> Helper.x_not_of_a_kind_values(3) |> Helper.is_pair? ->
- :full_house
- true ->
- :not_matched
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement