duhderp(-2.0bb)

Authorslowderp
Submission date2011-06-12 10:27:19.383546
Rating6019
Matches played5453
Win rate61.16

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(beat[beat[mymoves[randint(0, len(mymoves)-1)]]] if randint(0, 2) else beat[opmoves[randint(0, len(opmoves)-1)]])
else:
    opmoves = []
    mymoves = [beat.keys()[randint(0, 2)]]

output = mymoves[-1]