Author | jared |
Submission date | 2011-11-05 03:41:57.373877 |
Rating | 4857 |
Matches played | 837 |
Win rate | 46.48 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "R":
output = random.choice(["R","P"])
elif input == "P":
output = random.choice(["P","S"])
elif input == "S":
output = random.choice(["S","R"])
else:
output = "R"