Author | putiferio |
Submission date | 2016-12-29 09:06:38.272742 |
Rating | 6205 |
Matches played | 382 |
Win rate | 60.21 |
Use rpsrunner.py to play unranked matches on your computer.
#putiferio61@gmail.com
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,12)>1:
output=mosse[random.randint(0,2)]