To prevent the game from becoming impossibly difficult or too boring to play, each of the ghosts were programmed to have their own distinct traits — the red ghost would directly chase Pac-Man, the pink and blue ghosts would position themselves in front of him, and the orange ghost would be random.
