Silly2

Authorlamma
Submission date2013-03-14 11:30:07.423375
Rating5816
Matches played732
Win rate53.42

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

Source code:

import random

plays = ["R","P","S"]
counter = {"R":"P", "P":"S", "S":"R"}

if input == "":
    round = 0
    hist = []
    output = "R"
else:
    if round<10:
      hist.append(input)
    else:
      hist[round % 10] = input
    guess = random.choice(hist)
    output = counter[guess]
    round += 1