Author | scoppini |
Submission date | 2015-07-01 03:42:30.294424 |
Rating | 6244 |
Matches played | 492 |
Win rate | 56.5 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input:
choices += beats[input]
else:
beats = {'R': 'P', 'P': 'S', 'S': 'R'}
choices = 'RPS'
output = random.choice(choices)