rndbeat-bold

Authorpyfex
Submission date2011-06-12 21:54:07.566457
Rating3516
Matches played5238
Win rate34.44

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

Source code:

import random

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

random.seed(16)