Most Common

AuthorSJL
Submission date2019-05-30 13:39:42.718579
Rating2938
Matches played239
Win rate28.45

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

Source code:

import random

d = {"R":0,"P":0,"S":0}

if not input:
	output = random.choice("RPS")
else:
	d[input] += 1
	output = max(d, key=lambda key: d[key])