David

Authorrdococ
Submission date2015-03-28 12:30:09.312825
Rating4687
Matches played527
Win rate47.06

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

Source code:

import random
output = random.choice(["R", "S", "P"])
if input == "":
	history = []
	guess = ""
else:
	history = [input] + history
	guess = history[random.choice([3, 6]) % len(history)]
if guess == "R":
	output = "P"
elif guess == "S":
	output = "R"
elif guess == "P":
	output = "S"