Author | vladh |
Submission date | 2011-05-21 12:06:26.101185 |
Rating | 3638 |
Matches played | 7581 |
Win rate | 34.02 |
Use rpsrunner.py to play unranked matches on your computer.
import random;
moves=["R","P","S"];
if input=="":
output=random.choice(moves);
else:
new=[];
for m in moves:
if m!=input:
new.append(m);
output=random.choice(new);