Stupid

AuthorVladimir Del
Submission date2013-08-28 05:45:27.708260
Rating3988
Matches played652
Win rate37.73

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

Source code:

import random
p = input.count("P")
r = input.count("R")
s = input.count("S")

if p > r and p > s:
	output = "P"
if r > p and r > s:
	output = "R"
if s > p and s > r:
	output = "S"
	
if p == r and p == s :
	output = random.choice(["R", "P", "S"])
if p == r:
	output = random.choice(["R", "P"])
if p == s:
	output = random.choice(["S", "P"])
if s == r:
	output = random.choice(["R", "S"])