Don't Beat Last Input

Authorvladh
Submission date2011-05-21 12:06:26.101185
Rating3638
Matches played7581
Win rate34.02

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

Source code:

import random;
moves=["R","P","S"];

if input=="":
	output=random.choice(moves);
else:
	new=[];
	for m in moves:
		if m!=input:
			new.append(m);
	output=random.choice(new);