Last active
June 6, 2018 18:20
-
-
Save loganmoseley/19bd173bb934f2d40a9f686b82cf0d8c to your computer and use it in GitHub Desktop.
Square State Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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