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