switchonloss

Authorilia10000
Submission date2012-08-23 17:03:32.660641
Rating3335
Matches played798
Win rate35.84

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

Source code:

from random import choice

if input == "":
   output= choice(["R", "S", "P"])

if output == "P": 
   if input == "S":
      output = choice(["S", "R"]) 
   else:
      output = output

if output == "S":
   if input == "R":
      output = choice(["R", "P"])
   else:
      output = output

if output == "R":
   if input == "P":
      output = choice(["P", "S"])
   else:
      output = output