squarefree

Authorphil
Submission date2017-04-22 18:17:01.205582
Rating3560
Matches played343
Win rate38.48

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

Source code:

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]