Author | ffenlivaw |
Submission date | 2016-12-28 14:25:35.569609 |
Rating | 4963 |
Matches played | 383 |
Win rate | 50.91 |
Use rpsrunner.py to play unranked matches on your computer.
import itertools
from random import randint
def init():
global HTH, rounds, AIwins, humanWins, draws, choiceArr
HTH = ""
rounds = 0
AIwins = 0
humanWins = 0
draws = 0
choiceArr = ["R","P","S"]
init()
if input == "":
output = choiceArr[randint(0,2)]
else:
output = choiceArr[randint(0,2)]