| Author | jchen |
| Submission date | 2011-06-15 20:27:48.004302 |
| Rating | 2240 |
| Matches played | 5204 |
| Win rate | 17.66 |
Use rpsrunner.py to play unranked matches on your computer.
import random
history = ["R", "P", "S"]
call_sign = ["R", "P", "S"]
if input == "": # initialize variables for the first round
output = random.choice(call_sign)
else:
history.append(input)
output = history[0]
history = history.pop(0)