Skip to content

Instantly share code, notes, and snippets.

@JasonY1
Created June 30, 2014 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasonY1/1873a845d1697e20d9ae to your computer and use it in GitHub Desktop.
Save JasonY1/1873a845d1697e20d9ae to your computer and use it in GitHub Desktop.
case
when p1[1] == "R" && p2[1] == "S" || p1[1] == "P" && p2[1] == "R" || p1[1] == "S" && p2[1] == "P" || p1[1] == p2[1]
then p1
else p2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment