Author | Vitali |
Submission date | 2013-10-07 14:02:11.677696 |
Rating | 3630 |
Matches played | 624 |
Win rate | 32.21 |
Use rpsrunner.py to play unranked matches on your computer.
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)