Greedy

AuthorVitali
Submission date2013-10-07 14:02:11.677696
Rating3630
Matches played624
Win rate32.21

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

Source code:

import random

selection_list = ["R"] + ["P"] + ["S"]


if input == "": 
	output = "R"


if ((output == "R" and input == "P") or (output == "P" and input == "S") or (output == "S" and input == "R")):
   output = random.choice(selection_list)