Author | putiferio |
Submission date | 2016-12-03 14:09:11.270908 |
Rating | 5583 |
Matches played | 395 |
Win rate | 56.96 |
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,6)>1:
output=mosse[random.randint(0,2)]