Follower with another twist

AuthorMihai Maruseac
Submission date2011-06-10 16:26:54.170981
Rating2114
Matches played5411
Win rate22.25

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

Source code:

import random
if input == '':
    output = 'R'
elif random.choice(['k', 'k', 'k', 'k', 'k', 'k', 'o']) == 'k':
    output = input
else:
    output = {'R':'S', 'P':'R', 'S':'P'}[input]