rndbeat4

Authorpyfex
Submission date2011-06-10 19:13:40.852446
Rating5569
Matches played5296
Win rate54.81

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]