Edward [test 3]

Authorrdococ
Submission date2015-03-28 11:49:01.717381
Rating4084
Matches played503
Win rate43.94

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

Source code:

import random
output = random.choice(["R", "S", "P"])
if input == "":
	history = []
	predict = ""
history = [input] + history
for x in range(0, 10 % len(history)):
	matches = 0
	predict = history[x]
	for y in range(0, 10 % len(history)):
		if predict == history[(x + y) % len(history)]:
			matches += 1
	if matches < 4:
		predict = ""
if predict == "R":
	output = "P"
elif predict == "S":
	output = "R"
elif predict == "P":
	output = "S"