Skip to content

Instantly share code, notes, and snippets.

@merlox
Last active October 16, 2018 09:43
Show Gist options
  • Save merlox/2f84c46e0245f388943bfacda78b1844 to your computer and use it in GitHub Desktop.
Save merlox/2f84c46e0245f388943bfacda78b1844 to your computer and use it in GitHub Desktop.
start()
// To setup the main variables when starting the game
function start() {}
// To set the required listeners that will make the game functionality
function setListeners() {}
// To show updated notifications as they happen to the user
function status(message) {}
// To place a bet when playing a game
function placeBet(bet) {}
// To generate an encrypted hash with the game information for this player
function generateHash(nonce, call, bet, balance, sequence) {}
// To sign an encrypted message with the user address so that it's confirmed from him
function signMessage(hash) {}
// To show statistics about the game
function updateVisualData(gameData) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment