Author | bob |
Submission date | 2019-11-23 23:22:23.704093 |
Rating | 1406 |
Matches played | 205 |
Win rate | 15.12 |
Use rpsrunner.py to play unranked matches on your computer.
output=""
rockCount = paperCount = scissorsCount = 0
if 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"