New State machine tutorial

johnnycanuck:
This is a very cool tutorial. I've been doing it somewhat sloppily the past few years, and this may help clean up my act. Also motivates me to look for and/or (eventually) come up with an object oriented version.

Actually, state machines have been used in OOP code since at least 1970 when Charles Moore released Forth.

State machines are a technique, Johnny.

What part of Canada are you from? My family reunion is still held in NB, you might be a cousin.