Author | WOnder93 |
Submission date | 2013-10-15 21:19:41.891053 |
Rating | 3021 |
Matches played | 618 |
Win rate | 32.2 |
Use rpsrunner.py to play unranked matches on your computer.
import hashlib
s = hashlib.sha256()
if input:
s.update(input)
output = ['R', 'P', 'S'][sum(map(ord, s.digest())) % 3]