Author | putiferio |
Submission date | 2016-11-29 12:22:56.907093 |
Rating | 6355 |
Matches played | 396 |
Win rate | 61.87 |
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,10)>1:
output=mosse[random.randint(0,2)]