Author | Linch |
Submission date | 2020-01-01 07:18:18.567635 |
Rating | 6201 |
Matches played | 206 |
Win rate | 60.68 |
Use rpsrunner.py to play unranked matches on your computer.
import random
beats = {'R':'P', 'P':'S', 'S':'R'}
if not input:
history = 'RPS'
history += input
output = beats[random.choice(history)]