Skip to content

Instantly share code, notes, and snippets.

@edgerunner
Created October 5, 2021 13:56
Show Gist options
  • Save edgerunner/c6eec24f5132959fa4e257d535031c8f to your computer and use it in GitHub Desktop.
Save edgerunner/c6eec24f5132959fa4e257d535031c8f to your computer and use it in GitHub Desktop.
Word Match
Word Match
Intro
start -> In progress
In progress
timeout -> Failed
Waiting for Input
enough correct answers -> Passed
no more questions -> Wronged out
start drag -> Dragging
Dragging
Over Wrong
move to right -> Over Right
drop -> Wrong
Over Right
move to wrong -> Over Wrong
drop -> Right
Dropped
animation done -> Waiting for Input
Right
Wrong
Concluded
Mastered
Passed
no wrong answers -> Mastered
Failed
retry -> In progress
Timed out
Wronged out
Layout
Portrait
Landscape
Two categories
Three categories
Four categories
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