Author | putiferio |
Submission date | 2016-12-01 15:16:00.147509 |
Rating | 4771 |
Matches played | 396 |
Win rate | 47.47 |
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="R"
if input == "P": output="P"
if input == "S": output="S"
if random.randint(1,10)>1:
output=mosse[random.randint(0,2)]