Author | Vitali |
Submission date | 2013-10-07 13:22:51.582909 |
Rating | 5960 |
Matches played | 660 |
Win rate | 57.58 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
rock = paper = scissors = 1
elif input == "R":
paper += 1
elif input == "P":
scissors += 1
elif input == "S":
rock += 1
selection_list = ["R"] * rock + ["P"] * paper + ["S"] * scissors
output = random.choice(selection_list)