Skip to content

Instantly share code, notes, and snippets.

@rozap
Created November 12, 2014 23:47
Show Gist options
  • Save rozap/b3307f046491a85cbd86 to your computer and use it in GitHub Desktop.
Save rozap/b3307f046491a85cbd86 to your computer and use it in GitHub Desktop.
def rank_to_int({_, "J"}), do: 11
def rank_to_int({_, "Q"}), do: 12
def rank_to_int({_, "K"}), do: 13
def rank_to_int({_, "A"}), do: 14
def rank_to_int({_, n}), do: n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment