Skip to content

Instantly share code, notes, and snippets.

Created March 5, 2012 18:20
Show Gist options
  • Save anonymous/1980117 to your computer and use it in GitHub Desktop.
Save anonymous/1980117 to your computer and use it in GitHub Desktop.
[
[
[ ["Armando", "P"], ["Dave", "S"] ],
[ ["Richard", "R"], ["Michael", "S"] ],
],
[
[ ["Allen", "S"], ["Omer", "P"] ],
[ ["David E.", "R"], ["Richard X.", "P"] ]
]
]
Under this scenario, Dave would beat Armando (S>P), Richard would beat Michael (R>S), and then Dave and Richard would play (Richard wins since R>S); similarly, Allen would beat Omer, David E. would beat Richard X., and Allen and Richard X. would play (Allen wins since S>P); and finally Richard would beat Allen since R>P, that is, continue until there is only a single winner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment