duhderp(-1.0)

Authorslowderp
Submission date2011-06-12 09:35:07.782138
Rating3541
Matches played5411
Win rate38.38

Use rpsrunner.py to play unranked matches on your computer.

Source code:

from random import randint

beat = {'R':'P', 'P':'S', 'S':'R'}
if input in beat.keys():
    opmoves.append(input)
    mymoves.append(opmoves[randint(0, len(opmoves)-1)] if randint(0, 3) else mymoves[randint(0, len(mymoves)-1)])
else:
    opmoves = []
    mymoves = [beat.keys()[randint(0, 2)]]

output = mymoves[-1]