A Finite State Machine (FSM) Implemented in Python via Coroutines
I've been reading about the yield keyword in Python lately, and in the process I learned about the coroutine design pattern. I read about it in JavaScript a while back and played a bit with generator functions. The languages are pretty similar as far...
polydorkic.hashnode.dev7 min read