This is not a very answer, but if you are still looking for AI, I will send you what I have received so far. This is the original AI, but creating something that is 100% accurate will be quite difficult. Even in the old days of the game, reverse buffers were not used, so the screen was updated with every vertical update, which was ~ 1/60 of a second. Most of the game logic was executed when this interruption occurred, but the ghosts AI was made after. therefore, it is difficult to say how many assembly instructions were executed before the interruption continued again. But 99% is also nice.
source share