Majora

This program has been disqualified.


Authorrdococ
Submission date2015-03-29 12:29:40.510940
Rating3900
Matches played35
Win rate37.14

Source code:

import random
output = random.choice(["R", "S", "P"])
if input == "":
	history = []
	guess = ""
	x = 0
else:
	history = [input] + history
	x = 0
	while ((history[min(x, len(history) - 1)] != history[min(x + 1, len(history) - 1)]) or (x + 1 < len(history))):
		x += 1
	guess = history[min(x, len(history) - 1)]
if guess == "R":
	output = "P"
elif guess == "S":
	output = "R"
elif guess == "P":
	output = "S"