windower

Authorkyle morrison
Submission date2011-06-09 09:18:59.064694
Rating4874
Matches played5645
Win rate49.25

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

Source code:

import random
moves = {'R': 'P', 'P': 'S', 'S': 'R'}

if len(input) < 25:
    output = random.choice(moves.keys())
else:
    possible = [moves[i] for i in input]
    output = random.choice(possible)