Author | pg_robot |
Submission date | 2012-10-30 11:25:26.184937 |
Rating | 3077 |
Matches played | 805 |
Win rate | 30.68 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
r = 1
p = 0
s = 0
output = "R"
elif r <=p and r <=s:
r += 1
output = "R"
elif p <=r and p <=s:
p += 1
output = "P"
elif s <=r and s <=p:
s += 1
output = "S"