duhderp(-2.0bba)

Authorslowderp
Submission date2012-11-30 10:28:03.633624
Rating6497
Matches played804
Win rate63.31

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

output = mymoves[-1]