Toru Iwatani, 1986 Pac-Man Designer
programmersatwork.wordpress.com
programmersatwork.wordpress.com
When a human being is constantly under attack like this, he becomes discouraged. So we developed the wave-patterned attack–attack then disperse; as time goes by the ghosts regroup and attack again. Gradually the peaks and valleys in the curve of the wave become less pronounced so that the ghosts attack more frequently.
I always found the ghosts algorithms fascinating: the pac man dossier has interesting graphical representations of them
https://www.gamasutra.com/view/feature/132330/the_pacman_dos...
There's not really anything in it that the Pac-Man Dossier doesn't cover, but it's more focused and (hopefully) easier to follow for people just interested in that aspect.
The "Retro Game Mechanics Explained" channel did a good video explanation a few months ago too: https://www.youtube.com/watch?v=ataGotQ7ir8
There's a lot we take for granted these days which were relatively innovative and unique in Pac-Man, such as the clever AI, and also it's one of the first instances of a video game mascot. Well worth a watch.
Also, it's Pac-Man, not PacMan.