ARST

AuthorARST
Submission date2017-07-07 20:45:11.390170
Rating6007
Matches played347
Win rate59.65

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"])