Author | Varan |
Submission date | 2011-06-09 09:40:07.648450 |
Rating | 2858 |
Matches played | 5449 |
Win rate | 30.19 |
Use rpsrunner.py to play unranked matches on your computer.
if input == "":
choices = [('R', 0), ('P', 0), ('S', 0)]
choices = sorted(choices, key=lambda choice: choice[1])
choices[0] = (choices[0][0], choices[0][1] + 1)
output = choices[0][0];