Hacker News new | ask | show | jobs
by iudqnolq 1884 days ago
Thanks for the correction in contexts. I still wouldn't recommend state machines to a newcomer.
1 comments

i only mentioned it cause of the use of Redux, which in couple areas very similar to a state machine.

state,events, transitions as the parent said, are very well buildable with state machines, since thats basically what they explicitly are.

and since we are talking about games, it would be more logical to use than, contexts, loading/saving state to a db is just secondary nature of a game, its more about the state transitions and events of player input and game logic.