Skip to content

Instantly share code, notes, and snippets.

@loganmoseley
Last active June 6, 2018 18:20
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 loganmoseley/19bd173bb934f2d40a9f686b82cf0d8c to your computer and use it in GitHub Desktop.
Save loganmoseley/19bd173bb934f2d40a9f686b82cf0d8c to your computer and use it in GitHub Desktop.
Square State Flow
Square State Flow
type letter -> Bare Black
Bare
Bare Black
type letter -> Bare Black
check correct -> Bare Blue
check incorrect -> Slashed
reveal correct -> Bare Blue
reveal incorrect -> Red Flag Blue
Bare Blue
Slashed
type letter -> Black Flag Black
reveal -> Red Flag Blue
Black Flag
Black Flag Black
type letter -> Black Flag Black
check correct -> Black Flag Blue
check incorrect -> Slashed
reveal correct -> Black Flag Blue
reveal incorrect -> Red Flag Blue
Black Flag Blue
Red Flag Blue
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