How to win at rock-paper-scissors