BeatAllRandomRecency

AuthorSirWhyte
Submission date2016-01-01 17:01:37.706837
Rating6393
Matches played445
Win rate63.82

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

Source code:

import random
s = 5
if input == "":
	output = random.choice(["R", "P", "S"])
	rps_next = {'P': 'S', 'S': 'R', 'R': 'P'}
	h = ""
else:
	h += input + output
	output = rps_next[random.choice(h+h[-s:]+h[-2*s:]+h[-3*s:])]