3 in a row fix

AuthorAntiDog
Submission date2018-08-07 12:03:41.313270
Rating2499
Matches played271
Win rate22.88

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 > 10:
  output = random.choice(["R","P","S"])
  i = 0
if i > 9:
  output = "R"
elif i > 6: 
  output = "P"
else:
  output = "S"