Delay_10

AuthorJustinF
Submission date2011-06-14 11:33:35.187781
Rating4126
Matches played5421
Win rate39.03

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

Source code:

import random

if input == "":
  output = random.choice(("R", "P", "S"))
  timer = ""
else:
  timer += input
  if len(timer) >= 10:
    output = timer[-10]
  else:
    output = random.choice(("R", "P", "S"))