Now its weighted random.

AuthorJay_jayjay
Submission date2019-11-17 19:33:00.234590
Rating6225
Matches played218
Win rate61.47

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

Source code:

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