Author | MrA |
Submission date | 2019-02-04 15:18:19.166835 |
Rating | 5038 |
Matches played | 254 |
Win rate | 54.72 |
Use rpsrunner.py to play unranked matches on your computer.
import random
final =""
f1 = random.choice(["R","P","S"])
if f1 == "R":
f2= random.choice(["R","P","P","S"])
if f1 == "P":
f2= random.choice(["R","P","S","S"])
if f1 == "S":
f2= random.choice(["R","R","P","S"])
if f2 == "R":
f3= random.choice(["R","P","S","S"])
if f2 == "P":
f3= random.choice(["R","R","P","S"])
if f2 == "S":
f3= random.choice(["R","P","P","S"])
if f3 == "R":
final= random.choice(["R","P","S"])
if f3 == "P":
final= random.choice(["R","P","S"])
if f3 == "S":
final= random.choice(["R","P","S"])
output = final