Last active
October 10, 2020 17:38
-
-
Save satriahrh/c24fe5227b08364a01192d3f5783437b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fsm := FiniteStateMachine{ | |
Initial: "on", | |
StateMap: StateMap{ | |
"locked": Transition{ | |
"coin": Action{ | |
Destination: "unlocked", | |
}, | |
"push": Action{ | |
Destionation: "locked", | |
} | |
}, | |
"unlocked": Transition{ | |
"coin": Action{ | |
Destination: "unlocked", | |
}, | |
"push": Action{ | |
Destination: "locked", | |
} | |
} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment