Author | SJL |
Submission date | 2019-05-30 13:39:42.718579 |
Rating | 2938 |
Matches played | 239 |
Win rate | 28.45 |
Use rpsrunner.py to play unranked matches on your computer.
import random
d = {"R":0,"P":0,"S":0}
if not input:
output = random.choice("RPS")
else:
d[input] += 1
output = max(d, key=lambda key: d[key])