simple2

Authorjjh
Submission date2017-01-19 15:44:50.460690
Rating4754
Matches played392
Win rate45.92

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

Source code:

import random

if input == "": # initialize variables for the first round
    count = 0 
    irreq = 1
    output = random.choice(["R","P","S"])
elif input == "R":
	output = "P"
elif input == "P":
	output = "S"
elif input == "S":
	output = "R"

count += 1

if count % irreq == 0 :
   rdm = random.choice(["R","P","S"])

   if rdm == "R": 
      output = "S" 
      irreq = 2
   elif rdm == "P": 
      output = "R" 
      irreq = 4
   elif rdm == "S": 
      output = "P" 
      irreq = 3