01-14-2025 10:34 AM
I have a program with a pseudo state-machine depending on what the user has selected. It seems to work most of the time, but sometimes it seems like an option that should not be allowed by the user is allowed, IE they can select a door that is already revealed.
LV 2020
01-14-2025 10:53 AM
Can you provide a step-by-step procedure to reproduce the problem?
(e.g. change the dices to fixed values for testing)
01-14-2025 10:55 AM
I can't. It seems very rare, and I have not been able to reproduce it. Haven't seen it at all lately. Maybe it was my bias.
01-14-2025 05:49 PM
My guess is that it can happen if doors are clicked in rapid succession. When a door is clicked, it is effectively disabled by a subsequent timeout event. If a second door is clicked very quickly after the first, that second door click event can be triggered before the timeout event (that would have prevented the 2nd door click from having an effect).