LazyCat

AuthorTheMoooh
Submission date2015-08-03 01:23:24.199367
Rating6426
Matches played477
Win rate61.84

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

Source code:

#why ? 
import random
if input == "":
	output = random.choice(["R", "P", "S"])
	beat = {'P': 'S', 'S': 'R', 'R': 'P'}
  	beat2 = {'PP': 'S', 'SS': 'R', 'RR':'P', 'PS': 'S', 'PR': 'P', 'RS': 'R', 'RP': 'P', 'SP': 'S', 'SR': 'R'}
	oppH = myH =[]
else:	
	oppH.append(input)
	myH.append(output)
	output = beat2[random.choice(oppH) + beat2[random.choice(myH)+random.choice(["R", "P", "S"])]]