This program has been disqualified.
| Author | jfp | 
| Submission date | 2011-06-09 21:58:46.961198 | 
| Rating | 0 | 
| Matches played | 0 | 
| Win rate | 0 | 
import random
algo = random.choice(["a", "b", "c"])
if  algo == "a":
  # Play randomly.
  output = random.choice(["S", "R", "P"])
elif algo == "b":
  # Play the move that would have won last time.
  if input == "R":
    output = "P"
  elif input == "P":
    output = "S"
  else:
    output = "R"
elif algo == "c":
  # Play the same move again.
  if not output:
    output = "S"
  else:
    output = output