Author | dirknbr |
Submission date | 2019-03-16 13:51:28.357862 |
Rating | 4605 |
Matches played | 244 |
Win rate | 44.26 |
Use rpsrunner.py to play unranked matches on your computer.
# beat the last move
import random
rps = ['R', 'P', 'S']
if input == '':
output = random.choice(rps)
elif input == 'R':
output = 'P'
elif input == 'S':
output = 'R'
else:
output = 'S'