Problem 1255. PACMAT 07 - Optimized Ghosts, PAC 2X Ghost Speed, 4 Lives; Interactive Download
The Classic PACMAN game brought to Cody.
PACMAT requires clearing all the Yellow Dots. PACMAT moves at 2X Ghost Speed, Four lives are available. Adjacent Ghosts will capture PACMAT. Ghosts do not use the tunnel. On Ghost capture everyone gets reset. These trained ghosts take the minimum path to PACMAT assuming the other Ghosts are walls.

To aid in development of your routine, a PACMAT_Interactive2X.m file that creates a solver script and video has been posted at PACMAT_Interactive2X.m. (Right click, 'save link as'). The routine creates a PACMAT_2Xsolver.m script from the interactive play. The script demonstrates Interactivity, figure/KeyPressFcn, listdlg, and VideoWriter.
PAC2X 1 Life Interactive (MP4)
Alfonso 398 (MP4)
Inputs: Map Definitions: -1=Wall, 0=Empty, 1=Dot, 2=PACMAT, >2=Ghost
Output: Direction Definitions: 1-Up, 2-Right, 3-Down, 4-Left, 0-No move
Pass Criteria: Clear all dots in less than 4000 moves and 4 Lives
Scoring: Moves + 1000 * Lives
Near Future: Tunneling Ghosts and then Randomized Awesome Ghosts to make them non-deterministic
Solution Stats
Problem Comments
-
1 Comment
My 6 year old daughter enjoyed the graphics and finishing the game.
Solution Comments
Show commentsGroup

Computer Games III
- 13 Problems
- 2 Finishers
- Sokoban: Puzzle 10.45
- Toads and Frogs Puzzle
- Toads and Frogs Puzzle 2
- Win all the time!
- PACMAT 06 - Optimized Ghosts, Equal Speed, Inf Lives; Interactive Download
- PACMAT 07 - Optimized Ghosts, PAC 2X Ghost Speed, 4 Lives; Interactive Download
- PACMAT 08 - Awesome Tunneling Ghosts, 2X Speed, 6 Lives, Game Download
- PACMAT 09 - Awesome Tunnelling Ghosts, Equal Speed, 20 Lives, Game Download
- Capture the flag(s)
- BLOCK x3 (Version 1)
- BLOCK x3 (Version 2)
- BLOCK x3 (Version 3)
- BLOCK x3 (Version 4)
Problem Recent Solvers3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!