Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. cond do
  2. suits |> Helper.same_suit? && ranks |> Helper.consecutive_ranks? ->
  3. :straight_flush
  4. ranks |> Helper.x_of_a_kind?(4) ->
  5. :four_of_a_kind
  6. ranks |> Helper.x_not_of_a_kind_values(3) |> Helper.is_pair? ->
  7. :full_house
  8. true ->
  9. :not_matched
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement