Author | Peric N Zeljko |
Submission date | 2012-10-29 11:02:16.184122 |
Rating | 3279 |
Matches played | 742 |
Win rate | 30.05 |
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"