Need guidance on how to design a 3 digital lock

Thread Starter

.cat

Joined Dec 13, 2024
6
The digital lock needs to allow for 1 error for each combination. When the 2nd attempt is correct it goes on, if the 2nd attempt is still an error it locks everything until the reset. And when all three digits are entered correctly the lock remains open until reset.
 

crutschow

Joined Mar 14, 2008
38,316
We don't do homework here, we help with homework, so please show us your approach at doing this task, and we'll help you from there.
 

Thread Starter

.cat

Joined Dec 13, 2024
6
I was thinking about using a mealy machine for the state diagram because the transitions are what makes the state change.
 

Thread Starter

.cat

Joined Dec 13, 2024
6
I'm struggling to find out whether another state is necessary or if whether I'm on the right track.
 

WBahn

Joined Mar 31, 2012
32,702
How about explaining your state machine as if convincing a client that you have a solution to their problem? What does each state mean? What does each transition mean? Walk through an example (or examples) that exercise each state and each transition at least once.
 

WBahn

Joined Mar 31, 2012
32,702
When you say walking through examples do you mean finding some similar problems and compare them.
No. I mean running your proposed machine on examples and show how it works as the user makes various combinations of right and wrong choices. At each step, indicate the transition and what state the machine goes to.
 
Top