rndbeat

Authorpyfex
Submission date2011-06-09 11:09:41.872319
Rating5736
Matches played5218
Win rate57.91

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

Source code:

import random

if input == "":
  played = []
  output = random.choice(['R', 'P', 'S'])
else:
  played.append(input)
  expected = random.choice(played)
  output = {'P': 'S', 'R': 'P', 'S':'R'}[expected]