Author | trollathon |
Submission date | 2013-11-13 01:08:31.195531 |
Rating | 1422 |
Matches played | 607 |
Win rate | 13.84 |
Use rpsrunner.py to play unranked matches on your computer.
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"