Author | Hmmmmmmm |
Submission date | 2013-08-02 22:17:06.513637 |
Rating | 4529 |
Matches played | 668 |
Win rate | 47.46 |
Use rpsrunner.py to play unranked matches on your computer.
import random
beats={'S':'R','P':'S','R':'P'}
opponentIsGarbage=True
if input=='':
output=random.choice(['R','P','S'])
else:
output=random.choice([beats[input],input])