Author | zeringus |
Submission date | 2011-11-01 01:42:56.231255 |
Rating | 3777 |
Matches played | 972 |
Win rate | 38.58 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "R":
output = random.choice(["P","S"])
elif input == "P":
output = random.choice(["R","S"])
else:
output = random.choice(["R","P"])