Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New (better) State Machine example: Garage Door Keypad #11

Open
JoshOrndorff opened this issue Aug 31, 2023 · 0 comments
Open

New (better) State Machine example: Garage Door Keypad #11

JoshOrndorff opened this issue Aug 31, 2023 · 0 comments

Comments

@JoshOrndorff
Copy link
Owner

If the user enters the correct 4 digits, the door opens (or closes if it was already open).
The thing is, you could enter some random digits before you enter the correct code, and it would still open after the correct code.
As you sketch your states, be sure to handle that correctly.

This example is drawn from https://eng.libretexts.org/Under_Construction/Book%3A_Discrete_Structures/09%3A_Finite-State_Automata/9.02%3A_State_Transition_Diagrams which has many other excellent examples

JoshOrndorff added a commit to Polkadot-Blockchain-Academy/pba-content that referenced this issue Aug 31, 2023
nuke-web3 pushed a commit to Polkadot-Blockchain-Academy/pba-content that referenced this issue Sep 1, 2023
…#864)

* add images to quest for infra slides

* remove BFS-related todo

Followed up in JoshOrndorff/blockchain-from-scratch#11

* garage door keypad image

* Flesh out depository mint model example

Still needs a figure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant