Created FSM (markdown)

ni-richard 2019-09-16 21:35:21 +02:00
parent 6716f6f512
commit 570605be6a

12
FSM.md Normal file

@ -0,0 +1,12 @@
Another unique feature of the framework is the *FSM* - representing the state of your challenge. This allows you to track users progressing with the tasks you've defined for them to complete.
For instance, you could represent whether the user managed to create a malicious user with a state called `user_registered` and subscribe callbacks to events regarding that state (like entering or leaving).
You could create challenges that can be completed in several different ways: imagine a state called `challenge_complete`, which indicates if the challenge is completed. Several series of actions (triggers) could lead to this state.
This enables you to guide your users through the experience you've envisioned with your tutorial. We can provide a whole new level of interactivity in our challenges because we know what the user is doing. This includes context-dependent hints and the automatic typing of commands to a terminal.
***
**Available commands**:
* [fsm.trigger](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/fsm.trigger)
* [fsm.update](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/fsm.update)