Author | Harry Choi |
Submission date | 2017-12-04 16:34:45.695230 |
Rating | 4028 |
Matches played | 326 |
Win rate | 41.1 |
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"])