Author | putiferio |
Submission date | 2016-12-28 09:15:53.675320 |
Rating | 5281 |
Matches played | 368 |
Win rate | 56.25 |
Use rpsrunner.py to play unranked matches on your computer.
import random
mossev=["RPS","PSR","SRP"]
mosse=mossev[random.randint(0,2)]
if not input:
output =mosse[random.randint(0,2)]
else:
if input == "R": output="P"
if input == "P": output="S"
if input == "S": output="R"
if random.randint(1,15)>1:
output=mosse[random.randint(0,2)]