Author | katmarsen |
Submission date | 2013-10-02 17:24:55.755138 |
Rating | 2372 |
Matches played | 645 |
Win rate | 25.74 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if not input:
up = 0
cycle = 0
up = up + 1
if up>7:
cycle = cycle + 1
up = 0
if cycle%2:
output = random.choice(['R','P','S'])
else:
output = 'RPS'[(cycle/2) % 3]