Kevin

Authorrdococ
Submission date2015-03-29 10:51:13.797894
Rating3791
Matches played495
Win rate39.39

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
	for x in range(9):
		if history[min(x, len(history) - 1)] == history[min(x - 1, len(history) - 2)]:
			guess = history[min(x, len(history) - 1)]
if guess == "R":
	output = "P"
elif guess == "S":
	output = "R"
elif guess == "P":
	output = "S"