Author | aaa |
Submission date | 2013-10-02 12:24:25.653888 |
Rating | 5899 |
Matches played | 653 |
Win rate | 56.36 |
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]