Final Puzzle State Machine

Introduction

This state machine contains three main states: Patrol, Alert and Chase, while Alert state is further divided into two states: Alert-search, and Alert-stare.

Patrol

Alert-search

Alert-stare

Chase: