duhderp(-2.0ba)

Authorslowderp
Submission date2011-06-12 10:05:23.743039
Rating5423
Matches played5233
Win rate51.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():
    mymoves.append(beat[beat[mymoves[randint(0, len(mymoves)-1)]]])
else:
    mymoves = [beat.keys()[randint(0, 2)]]

output = mymoves[-1]