FSM#2: How to… structure your FSM: a general overview
From theory, we define a Finite State Machine (FSM) as an abstract machine that can be in exactly one of a finite number of states at any given time, and is composed of a START state, a STOP state and a series of states, conditions and transitions. B...