| Author | kyle morrison | 
| Submission date | 2011-06-10 05:27:02.842005 | 
| Rating | 5181 | 
| Matches played | 5413 | 
| Win rate | 57.05 | 
Use rpsrunner.py to play unranked matches on your computer.
import random
moves = {'R': 'P', 'P': 'S', 'S': 'R'}
if not input:
    history = ''
history += input
if len(history) < 25:
    output = random.choice(moves.keys())
else:
    possible = [moves[i] for i in history[-25:]]
    output = random.choice(possible)