Destroyer2

AuthorJoey
Submission date2012-09-26 17:49:54.090693
Rating5567
Matches played776
Win rate56.7

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

Source code:

import random


if input == '':
        r = 0
        s = 0
        p = 0
        output = 'R'
else:
        if input == 'R':
                r += 1
        elif input == 'S':
                s += 1
        elif input == 'P':
                p += 1
        output = random.choice(['S'] * p + ['P'] * r + ['R'] * s)