ichti-test1

Authorichti
Submission date2015-09-21 08:22:10.703980
Rating4744
Matches played462
Win rate50.22

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

Source code:

import random

opponentPlays = []
myPlays = []
if input == "":
    o = random.choice(["R", "P", "S"])
    myPlays.append(o)
    output = o
else:
    opponentPlays.append(input)
    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