Can you provide the Matlab Coding for these programs? For example, Pacman 2005?
There is some sample code for Pacman on the Mathlab Contest page or you can use the websites available on Google Search. There are websites where you can see sample code of the Pacman software. This is the only way you can obtain the sample code for the program you want to build.