Question: are the ghosts in pacman programmed differently?
Answer: The enemies are four little ghost-shaped monsters, each of them a different colour - blue, yellow, pink and red. ... Each of the ghosts is programmed with an individual "personality", a different algorithm it uses to determine its method of moving through the maze.