Author | flug |
Submission date | 2019-06-02 15:38:16.952620 |
Rating | 4410 |
Matches played | 232 |
Win rate | 46.55 |
Use rpsrunner.py to play unranked matches on your computer.
import random
choice1 = random.choice(["1","2","3"])
if choice1 == "1":
output = random.choice(["R","R","R","R","R","R","R","P","S"])
if choice1 == "2":
output = random.choice(["R","P","P","P","P","P","P","P","P","S"])
if choice1 == "3":
output = random.choice(["R","P","S","S","S","S","S","S","S","S","S"])