This program has been disqualified.
Author | rdococ |
Submission date | 2015-03-29 12:29:40.510940 |
Rating | 3900 |
Matches played | 35 |
Win rate | 37.14 |
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"