| Author | slowderp | 
| Submission date | 2011-06-12 09:59:36.595463 | 
| Rating | 6279 | 
| Matches played | 5544 | 
| Win rate | 61.44 | 
Use rpsrunner.py to play unranked matches on your computer.
from random import randint
beat = {'R':'P', 'P':'S', 'S':'R'}
if input in beat.keys():
    opmoves.append(input)
    mymoves.append(beat[opmoves[randint(0, len(opmoves)-1)]] if randint(0, 1) else beat[beat[mymoves[randint(0, len(mymoves)-1)]]])
else:
    opmoves = []
    mymoves = [beat.keys()[randint(0, 2)]]
output = mymoves[-1]