Author | bob |
Submission date | 2019-11-23 23:25:45.572097 |
Rating | 1988 |
Matches played | 211 |
Win rate | 19.43 |
Use rpsrunner.py to play unranked matches on your computer.
output=""
if output=="":
rockCount = paperCount = scissorsCount = 0
elif output == "R":
rockCount += 1
elif output == "P":
paperCount += 1
elif output == "S":
scissorsCount += 1
if rockCount == paperCount == scissorsCount:
output="R"
elif rockCount > paperCount:
output="P"
else:
output="S"