Simple demonstration of enemy artificial intelligence. If the enemy ( ball ) gets too close to the hero ( batter ), the enemy will chase him until the hero escapes (by getting out of range). If the hero is far away, the enemy will return to his "patrol" routine. Directions: - Control the hero with the mouse.