Author | Harry Choi |
Submission date | 2017-11-30 22:31:26.728080 |
Rating | 4523 |
Matches played | 310 |
Win rate | 46.45 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "R":
output = random.choice(["P","S"])
if input == "P":
output = random.choice(["R","S"])
if input == "S":
output = random.choice(["S","R"])
else:
output = random.choice(["R","P","S"])