ARST

AuthorARST
Submission date2017-07-07 20:45:11.390170
Rating5818
Matches played220
Win rate58.64

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

Source code:

import random

if input == "":
	inputs = []
	counters = {
		'R': 'P',
		'P': 'S',
		'S': 'R'
	}
else:
	inputs.append(input)

if inputs:
	output = counters[random.choice(inputs)]
else:
	output = random.choice(["R","P","S"])