Pacman game?

can anyone help me on the ai of a pacman game?, the movements of the enemy, and the power pill. i’ve searched the forum and i didn’t find any helpful tutorial. . . any help would be much appreciated! THNX!