Author | JustinF |
Submission date | 2011-06-14 11:33:35.187781 |
Rating | 4126 |
Matches played | 5421 |
Win rate | 39.03 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
output = random.choice(("R", "P", "S"))
timer = ""
else:
timer += input
if len(timer) >= 10:
output = timer[-10]
else:
output = random.choice(("R", "P", "S"))