rndbeat4

Authorpyfex
Submission date2011-06-10 19:13:40.852446
Rating5785
Matches played5412
Win rate54.9

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[-16:])
  output = {'P': 'S', 'R': 'P', 'S':'R'}[expected]