Skip to content

Instantly share code, notes, and snippets.

@Zegnat
Last active February 27, 2020 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zegnat/fc7d37547960c28df1c839b24a8eef9b to your computer and use it in GitHub Desktop.
Save Zegnat/fc7d37547960c28df1c839b24a8eef9b to your computer and use it in GitHub Desktop.
Ash: My Venasaur will use hmac($secretA, 'Razor Leaf') and my secret for this turn is hash($secretA).
Gary: My Blastoise will use hmac($secretB, 'Switch for Charizard') and my secret for this turn is hash($secretB).
Ash: My move was 'Razor Leaf' and my secret was $secretA.
Gary: My move was 'Switch for Charizard' and my secret was $secretB.
Oak: Here are some random 0–100 to calculate results:
MT($secretA | $secretB)[0],
MT($secretA | $secretB)[1],
MT($secretA | $secretB)[2],
MT($secretA | $secretB)[3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment