Author | MrA |
Submission date | 2019-02-04 15:14:43.011467 |
Rating | 5016 |
Matches played | 262 |
Win rate | 50.0 |
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","S"])
if f1 == "P":
f2= random.choice(["R","P","S"])
if f1 == "S":
f2= random.choice(["R","P","S"])
if f2 == "R":
f3= random.choice(["R","P","S"])
if f2 == "P":
f3= random.choice(["R","P","S"])
if f2 == "S":
f3= random.choice(["R","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