The Classic PACMAN game brought to Cody.
PACMAT requires clearing the Yellow Dots while avoiding the wandering ghosts in 12 lives. 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. PACMAT gets faster as a function of captures.

To aid in development of your routine, a PACMAT_Ghosts_005.m file that creates a video has been posted at PACMAT_Ghosts_005.m. (Right click, 'save link as'). Using patches thus enable/figure, disable/video for best results.
Alfonso Enhanced (MP4) Alfonso clears at 2X speed with multiple tunnel usages.
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
Scoring:
score = F(Lives Remaining) + moves
F = [ 9000 8000 7500 7000 6500 4000 3000 2000 1000 500 100 0]
Note: Speed as function of Lives remaining [12 8 6 4 3 2 2 2 2 2 2 1];
Future: Asteroids
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
2366 Solvers
-
Calculate the Levenshtein distance between two strings
1506 Solvers
-
Program an exclusive OR operation with logical operators
750 Solvers
-
Rotate and display numbered tile
377 Solvers
-
Elapsed time is -0.005204 seconds.
104 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!