Author | JChen |
Submission date | 2011-06-15 22:27:32.560730 |
Rating | 4839 |
Matches played | 5017 |
Win rate | 49.25 |
Use rpsrunner.py to play unranked matches on your computer.
import random
count = 0
if input == "":
output = random.choice(["R","P","S"])
count +=1
else:
if(count%2==0):
output = random.choice(["R","P","S"])
count+=1
else:
output = output
count+=1