Common

Authorntsp
Submission date2011-06-09 08:27:25.546337
Rating2232
Matches played5420
Win rate20.09

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

Source code:

import random

if input == "": # initialize variables for the first round
	moves = []
	beat = "R"
else:
	moves.append(input)

random.shuffle(moves)

if beat == "R":
	output = "P"
elif beat == "P":
	output = "S"
else:
	output = "R"