Yonder-Dynamics / statemachine

Controls processes to complete a task.
MIT License
0 stars 0 forks source link

Write a stacking automaton #1

Open half-potato opened 5 years ago

half-potato commented 5 years ago

Difficulty: Medium Skills req: A nice language that we can agree on, Stacking Automata (PDA)

ahaggart commented 5 years ago

Use the stack to deal with subroutines and "asynchronous" events like process death.

Example: Pathing Reboot state that boots pathing then returns to a state based on the contents of the stack. When pathing dies, the current state pushes itself to the stack and transitions to Pathing Reboot.