Author | cat |
Submission date | 2017-02-12 07:54:20.926607 |
Rating | 3418 |
Matches played | 361 |
Win rate | 33.24 |
Use rpsrunner.py to play unranked matches on your computer.
if input == "":
r = p = s = 0
elif input == "R":
r += 1
elif input == "P":
p += 1
elif input == "S":
s += 1
if r > p and r > s:
output = "P"
elif p > s:
output = "S"
else:
output = "R"