Author | ZedaM |
Submission date | 2017-05-13 14:51:22.600390 |
Rating | 4768 |
Matches played | 373 |
Win rate | 49.87 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if not input:
beat={'R':'P','P':'S','S':'R'}
lose={'R':'S','P':'R','S':'P'}
lastin='R'
lastout='S'
output='S'
else:
output=random.choice("RPS")
lastin=input
lastout=output