Author | formula |
Submission date | 2011-12-03 05:27:22.493693 |
Rating | 3145 |
Matches played | 782 |
Win rate | 34.14 |
Use rpsrunner.py to play unranked matches on your computer.
if input == "":
rC = pC = sC = 0
elif input == "R":
rC += 1
elif input == "P":
pC += 1
elif input == "S":
sC += 1
if rC > pC and rC > sC:
output = "P"
elif pC > sC:
output = "S"
else:
output = "R"