Author | RyanC |
Submission date | 2012-10-05 00:55:55.593922 |
Rating | 5770 |
Matches played | 743 |
Win rate | 59.35 |
Use rpsrunner.py to play unranked matches on your computer.
from hashlib import sha256
# The constant used here came to me in a dream.
state = input and state + input or 'e+4sk5jfPPON3muIQJPM-KBCJPyYHgkkgXgpprL2'
output = 'RPS'[int(sha256(state).hexdigest(),16)%3]