Calculate a hash of my code, hashMe, and a hash of my opponent, hashYou. If (hashMe + hashYou) is odd, the player with the highest hash shall be the Chosen One, otherwise it’s the player with the lowest hash (if the hashes are identical, find some other unambiguous higher/lower criteria both players share, player IDs or something or lexicographic ordering of source code, if none exists, flip a coin).
This is way too complicated. Instead of ending with “flip a coin” why not just start with it?
This is way too complicated. Instead of ending with “flip a coin” why not just start with it?