Found in 2 comments on Hacker News
megaman22 · 2018-02-26 · Original thread
I wish I'd learned about state machines... Most of the potentially interesting CS courses at my college were taught by terrible professors who were allergic to code.

Thankfully I enjoyed screwing around with game programming, and picked up Matt Buckland's Programming Game AI by Example[1]. I've used essentially the same FSM design described there over and over in my career.

[1] http://amzn.to/2FxZ54c

Fresh book recommendations delivered straight to your inbox every Thursday.