bot6

Authorgafe
Submission date2014-10-11 12:48:49.606361
Rating5041
Matches played545
Win rate48.62

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

Source code:

import random
if input == "":
	output = random.choice(["R","P","S"])
	lastinput=""
if input == "R" :
	output = random.choice(["R","P"])
if input == "P" : 
   output= random.choice(["P","S"])
if input == "S" : 
   output=random.choice(["S","R"])
if lastinput == output:
	if lastinput == "R":
		output=random.choice(["S","R"])
	elif lastinput == "S":
		output=random.choice(["R","S"])
	elif lastinput == "P":
		output=random.choice(["P","S"])
lastinput=input
if random.choice([1,2,3]) == 1:
	output=random.choice(["P","R"])
if random.choice(["R","P","S"]) == input:
	output=random.choice(["R","S"])