The AI of Pac-Man's Ghosts
Released in 1980, Pac-Man utilizes a form of AI known as Limited Artificial Intelligence or Weak AI. This approach is based on pre-established parameters within a controlled environment. Pac-Man's ghosts are not only differentiated by their colors, but also by their unique behaviors, which are divided into four main states: stalking, spreading, frightened, and eaten.
The "scared" and "eaten" states are activated when the player consumes a Power Pellet, turning the ghosts into vulnerable targets. The "chase" and "spread" states are part of the strategy to capture Pac-Man, alternating between moments of coordinated attack and dispersal through the maze. The ghosts switch between these modes four times per cycle, going into continuous chase mode in the last phase until all the marbles are consumed or the player loses a life. Now, let's explore how each ghost contributes to this complex and unique strategy.