Author | Just Spiffing |
Submission date | 2014-02-04 18:58:49.739446 |
Rating | 5669 |
Matches played | 610 |
Win rate | 54.75 |
Use rpsrunner.py to play unranked matches on your computer.
from random import choice
if input == '':
R,P,S = 'RPS'
beats = dict(R=P, P=S, S=R)
better = beats.get(input, S)
output = choice('RPS' + better)