| Author | SirWhyte |
| Submission date | 2016-01-01 16:53:13.717383 |
| Rating | 5846 |
| Matches played | 485 |
| Win rate | 59.38 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
output = random.choice(["R", "P", "S"])
rps_next = {'P': 'S', 'S': 'R', 'R': 'P'}
h = ""
else:
h += input + output
output = rps_next[random.choice(h)]