3 in a row

AuthorAntiDog
Submission date2018-08-07 12:01:04.906260
Rating4432
Matches played265
Win rate44.91

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

Source code:

import random

moves = {"S":"R","P":"S","R":"P"}
if input == "":
  i = 0
else:
  i +=1
if i > 9:
  output = "R"
elif i > 6: 
  output = "P"
elif i > 3: 
  output = "S"
else:
  output = random.choice(["R","P","S"])
  i = 0