test2556

Authortrollathon
Submission date2013-11-13 01:08:31.195531
Rating1422
Matches played607
Win rate13.84

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

Source code:

if input == "":
    opp1 = ""
    opp2 = ""
    output= "S"
    tranvar = ""
    
else:
    opp2 = opp1
    opp1 = input
    if opp1 == opp2:
        if opp1 == "R":
            output = "S"
        if opp1 == "S":
            output = "P"
        if opp1 == "P":
            output = "R"
    else:
        if opp1 == "R":
            if opp2 == "S":
                output = "S"
            if opp2 == "P":
                output = "R"
        if opp1 == "S":
            if opp2 == "R":
                output = "S"
            if opp2 == "P":
                output = "P"
        if opp1 == "P":
            if opp2 == "S":
                output = "P"
            if opp2 == "R":
                output = "R"