untrain

Authorjrr
Submission date2013-10-04 18:34:19.164341
Rating3126
Matches played632
Win rate30.38

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

Source code:

import random

RPS = ["R","P","S"]


if input == "":
    output = random.choice(RPS)
    cur = 1
    lim = 1
    last = output

elif cur < lim:
    cur += 1
    output = last

else:
    cur = 1
    lim += 1
    if last == "R":
        output = "S"
    elif last == "P":
        output = "R"
    else:
        output = "P"
    last = output