ichti-test2

Authorichti
Submission date2015-09-21 08:58:20.350790
Rating2284
Matches played470
Win rate24.89

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

Source code:

import random


if input == "":
    opponentPlays = []
    myPlays = []
    o = random.choice(["R", "P", "S"])
    myPlays.append(o)
    output = o
else:
    opponentPlays.append(input)
    print len(opponentPlays)
    if (len(opponentPlays) < 3):
        o = random.choice(["R", "P", "S"])
        myPlays.append(o)
        output = o
    else:
        
        o = random.choice(["R", "S", "S"])
        myPlays.append(o)
        output = o