Author | putiferio |
Submission date | 2016-12-28 13:20:19.673551 |
Rating | 5622 |
Matches played | 400 |
Win rate | 55.5 |
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,20)>1:
output=mosse[random.randint(0,2)]