Skip to content

Instantly share code, notes, and snippets.

@andrewgordstewart
Last active November 14, 2019 20:27
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 andrewgordstewart/79cfecdce9e548f0326301883f2a2dea to your computer and use it in GitHub Desktop.
Save andrewgordstewart/79cfecdce9e548f0326301883f2a2dea to your computer and use it in GitHub Desktop.
Different Outcome Proposed
Different Outcome Proposed
Voting
vote -> Consensus Reached?
reject -> Current Outcome
Consensus Reached?
yes -> Updating Outcome
no -> Voting
Equal Outcome Proposed
Current Outcome*
propose new outcome -> Voting
Updating Outcome
update -> Current Outcome
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment