| Author | lamma |
| Submission date | 2013-03-14 11:29:31.373770 |
| Rating | 5556 |
| Matches played | 765 |
| Win rate | 52.42 |
Use rpsrunner.py to play unranked matches on your computer.
import random
plays = ["R","P","S"]
counter = {"R":"P", "P":"S", "S":"R"}
if input == "":
round = 0
hist = []
output = "R"
else:
if round<100:
hist.append(input)
else:
hist[round % 10] = input
guess = random.choice(hist)
output = counter[guess]
round += 1