Piecewise

AuthorJustinF
Submission date2011-06-15 04:10:05.642958
Rating3754
Matches played4968
Win rate34.38

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

Source code:

import random

if not input:
  turns = 0
else:
  turns += 1

if turns < 300:
  output = random.choice(('R', 'P', 'S', 'S'))
elif turns < 525:
  output = random.choice(('R', 'P', 'S', 'P'))
elif turns < 693:
  output = random.choice(('R', 'P', 'S', 'R'))
elif turns < 819:
  output = random.choice(('R', 'P', 'S', 'S'))
elif turns < 913:
  output = random.choice(('R', 'P', 'S', 'P'))
elif turns < 983:
  output = random.choice(('R', 'P', 'S', 'R'))
else:
  output = random.choice(('R', 'P', 'S', 'S'))