Author | AntiDog |
Submission date | 2018-08-07 12:03:41.313270 |
Rating | 2499 |
Matches played | 271 |
Win rate | 22.88 |
Use rpsrunner.py to play unranked matches on your computer.
import random
moves = {"S":"R","P":"S","R":"P"}
if input == "":
i = 0
else:
i +=1
if i > 10:
output = random.choice(["R","P","S"])
i = 0
if i > 9:
output = "R"
elif i > 6:
output = "P"
else:
output = "S"