BeatAllRandom

AuthorSirWhyte
Submission date2016-01-01 16:53:13.717383
Rating5846
Matches played485
Win rate59.38

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

Source code:

import random
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)]