Author | phil |
Submission date | 2017-04-22 18:17:01.205582 |
Rating | 3560 |
Matches played | 343 |
Win rate | 38.48 |
Use rpsrunner.py to play unranked matches on your computer.
if input == "":
count = 0
play = "R"
nextplay = ""
for i in range(0,10):
for i in range(0,len(play)):
if play[i] == "R":
nextplay += "PS"
if play[i] == "S":
nextplay += "R"
if play[i] == "P":
nextplay += "PRS"
play = nextplay
output = "R"
if input != "":
count += 1
output = play[count]