rps

Authorilia10000
Submission date2012-08-22 18:41:21.942596
Rating4761
Matches played815
Win rate48.47

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

Source code:

import random
previous = ""
if previous == "":
      output = random.choice(["R","P","S"])
      previous = output
elif previous == "R":
      output = random.choice(["P","S"])
      previous = output
elif previous == "P":
      output = random.choice(["R","S"])
      previous = output
elif previous == "S":
      output = random.choice(["P","R"])
      previous = output