As many of you probably don’t know I am a pac-man addict. I have recently found quite an interesting read, funnily enough it’s about pacman, giving you a detailed description of the ghosts algorithms and game mechanics. if I where you I would check it out!
http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior