[Tutor] what's a state machine?
R. Alan Monroe
amonroe at columbus.rr.com
Wed Aug 6 19:47:56 EDT 2003
> The secret is to model the machine as a big table:
> Current State|Event|Action|Next State
> You then define numeric values(or hash keys) for each state
> and each event, load pointers/rferences to functions into
> the action column
Does that work when you have multiple concurrent states, like
simultaneouly Walking and ChewingGum at the same time?
Alan
More information about the Tutor
mailing list