Author | William |
Submission date | 2011-07-02 03:55:36.649140 |
Rating | 2159 |
Matches played | 4790 |
Win rate | 18.27 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == '':
output = random.choice(["R","P","S"])
elif input == "R":
output = "S"
elif input == "P":
output = "R"
elif input == "S":
output = "P"