Skip to content

Instantly share code, notes, and snippets.

@j-funk
Created May 24, 2021 21:03
Show Gist options
  • Save j-funk/ba6beaed0b6447fc3fc035de7cf1ed63 to your computer and use it in GitHub Desktop.
Save j-funk/ba6beaed0b6447fc3fc035de7cf1ed63 to your computer and use it in GitHub Desktop.
State Explosion Example
State Explosion Example
Audio Off and Video Off
audio on -> Audio On and Video Off
video on -> Audio Off and Video On
Audio On and Video Off
audio off -> Audio Off and Video Off
video on -> Audio On and Video On
Audio Off and Video On
audio on -> Audio On and Video On
video off -> Audio Off and Video Off
Audio On and Video On
audio off -> Audio Off and Video On
video off -> Audio On and Video Off
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