sketch.systems is a neat website where you can play around with state-machines.
It'd be cool if you could define a state-machine here and have it output to a format compatible with their playground; there's only two things:
The "Spec":
My Awesome Sketch
First State
some event -> Second State
Second State
And the the rendering code:
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
sketch.systems is a neat website where you can play around with state-machines.
It'd be cool if you could define a state-machine here and have it output to a format compatible with their playground; there's only two things:
The "Spec":
And the the rendering code: