Problem 1246. PACMAT 05 - Optimized Ghosts, PACMAT increasing speed, 12 Lives
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 Solvers2
Suggested Problems
-
Swap the first and last columns
20438 Solvers
-
Find the two most distant points
2834 Solvers
-
1935 Solvers
-
Back to basics 23 - Triangular matrix
1001 Solvers
-
Convert a vector into a number
599 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!