The 4 ghosts in Pac-Man all have separate programming on how they chase Pac-Man through the maze. Blinky (red) is the chaser and will chase Pac-Man around the maze as well as speed up depending on how many dots are left on the maze, Pinky (pink) is the ambusher and tries to get ahead of Pac-Man, Inky (blue) is very unpredictable as his path is calculated using Blinky and Pac-Man's location, and Clyde (orange) is the coward and will charge Pac-Man if he's far away but runs when he's close by.
Contributed by KidDivinegon