Foolishly rock

AuthorJay_jayjay
Submission date2019-11-18 20:10:02.573312
Rating4068
Matches played217
Win rate39.63

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

Source code:

import random
if not input:
  output=random.choice("RPS")
  history=""
  round=0
  win = {"R": "P", "P": "S", "S":"R"}
else:
  round += 1
  history+=input
  if round > 100:
    output=win[random.choice(list(history))]
  else:
    output = "R"