Author | dvsv |
Submission date | 2017-03-21 15:48:10.726439 |
Rating | 4290 |
Matches played | 374 |
Win rate | 37.97 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "": #is important
rockCount = paperCount = scissorsCount = 0
elif input == "R":
rockCount += 1
elif input == "P":
paperCount += 1
elif input == "S":
scissorsCount += 1
if input == "R":
output = random.choice(["P","S"])
elif input == "S":
output = random.choice(["R","P"])
else:
output = random.choice(["R","S"])