nowinchance

Authorpepenacho
Submission date2016-04-06 20:28:41.207302
Rating4270
Matches played417
Win rate39.33

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

Source code:

def whatDoes(action,to):
    if(action == 'W'):
        if(to == 'R'):
            return 'P'
        if(to == 'P'):
            return 'S'
        if(to == 'S'):
            return 'R'
    if(action == 'L'):
        if(to == 'R'):
            return 'S'
        if(to == 'P'):
            return 'R'
        if(to == 'S'):
            return 'P'
    if(action =='D'):
        return to

if(input !=""):
     output = whatDoes("W",input)
else:
     output='R'