Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The word "protocol" is a big red flag that you should be using a state machine.

The words "event loop" probably mean you need a state machine.

If "time" is an input variable, you probably have a state machine.



I've also found the presence of a mode variable a good indicator that a FSM should at least be considered.


Your second and third points are why I love having state machines in the games I develop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: