Author | pepenacho |
Submission date | 2016-04-06 19:07:45.061609 |
Rating | 2860 |
Matches played | 440 |
Win rate | 26.36 |
Use rpsrunner.py to play unranked matches on your computer.
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
return "caca"
output = whatDoes('W','R')