Author | AntiProgram |
Submission date | 2011-10-18 00:51:21.644171 |
Rating | 4994 |
Matches played | 1422 |
Win rate | 48.1 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
output = "R"
n = 0
elif input == "P":
output = random.choice(["R","P","S"])
elif input == "S":
output = "SPPSP"
output = random.choice(["R","P","S"])
elif input == "R":
output = random.choice(["R","P","S"])