Skip to content

Instantly share code, notes, and snippets.

@loganmoseley
Last active October 25, 2018 18:22
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/f0b0741583abcbca9517ee1fad7cad62 to your computer and use it in GitHub Desktop.
Save loganmoseley/f0b0741583abcbca9517ee1fad7cad62 to your computer and use it in GitHub Desktop.
Lifelinez iOS version 2-17
Lifelinez iOS version 2-17
Beginning
Lifeline menu -> Lifeline menu
Keyboard -> Keyboard
Lifeline menu
Turn Autocheck ON-OFF -> toggleAutocheck
Check Square -> checkSelectedSquare
Check Word -> checkSelectedWord
Check Puzzle -> checkPuzzle
Reveal Square -> revealSelectedSquare
Reveal Word -> revealSelectedWord
Reveal Puzzle -> handleRevealPuzzleTap
Clear Puzzle -> handleClearPuzzleTap
Keyboard
Escape -> Keyboard Escape
Cmd-C -> checkSelectedWord
Cmd-Shift-C -> checkPuzzle
Cmd-R -> revealSelectedWord
Cmd-Shift-R -> handleRevealPuzzleTap
Keyboard Escape
present lifelines -> Lifeline menu
dismiss any presented thing -> Beginning
checkSelectedSquare
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyCheckSelectedSquare
checkSelectedWord
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyCheckSelectedWord
checkPuzzle
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyCheckPuzzle
revealSelectedSquare
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyRevealSelectedSquare
revealSelectedWord
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyRevealSelectedWord
revealPuzzle
should warn DQ? yes -> Warn DQ
should warn DQ? no -> reallyRevealPuzzle
toggleAutocheck
Do it?
is Autocheck on? yes -> disableAutocheck
is Autocheck on? no -> DQ?
DQ?
should warn DQ? yes -> Warn DQ
should warn DQ? no -> checkPuzzleForAutocheck
handleRevealPuzzleTap
Confirmation Alert of Reveal Puzzle
confirm -> revealPuzzle
cancel -> Beginning
handleClearPuzzleTap
Confirmation Alert of Clear Puzzle
confirm -> clearPuzzle
cancel -> Beginning
Warn DQ
Confirmation Alert of Warn DQ
confirm Autocheck -> checkPuzzleForAutocheck
confirm check square -> reallyCheckSelectedSquare
confirm check word -> reallyCheckSelectedWord
confirm check puzzle -> reallyCheckPuzzle
confirm reveal square -> reallyRevealSelectedSquare
confirm reveal word -> reallyRevealSelectedWord
confirm reveal puzzle -> reallyRevealPuzzle
cancel -> Beginning
checkPuzzleForAutocheck
done -> Beginning
disableAutocheck
done -> Beginning
reallyCheckSelectedSquare
done -> Beginning
reallyCheckSelectedWord
done -> Beginning
reallyCheckPuzzle
done -> Beginning
reallyRevealSelectedSquare
done -> Beginning
reallyRevealSelectedWord
done -> Beginning
reallyRevealPuzzle
done -> Beginning
clearPuzzle
done -> Beginning
function render(model){
let current_state_name = model.active_states[0].name
let current = model.active_states[0]
let parent = current.parent
let transitions = current.transitions
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