ID: a simple flowchart titled “Should I Punch This Nazi?”. At the top is the question “Is the Nazi within punching distance?” two arrows lead to “Yes” and “No”. “Yes” has an arrow leading to “Punch the Nazi”. “No” has an arrow to “Move closer” and from that back up to “Is the Nazi within punching distance?”
Well done in converting this into a state engine. We can quickly plug it into our game ai