Simple Test 3

AuthorInferno
Submission date2011-06-10 17:20:06.263902
Rating4490
Matches played5430
Win rate46.26

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

Source code:

import random
if input == "":
    l = {'R':'P', 'P':'S', 'S':'R'}
    m = ['R', 'P', 'S']
else:
    if l[last] == input:
        m.append(input)
output = random.choice(m)
        
last = output