Problem 1238. PACMAT - Ghosts Random; 3 Lives
The Classic PACMAN game brought to Cody.
PACMAT Ghosts Random requires clearing the board of Yellow Dots while not bumping into the randomly moving ghosts in 3 lives. Adjacent Ghosts will capture PACMAT. Ghosts do not use the tunnel. On Ghost capture everyone gets reset.

To aid in development of your routine, a PACMAT_Ghosts.m file that creates a video has been posted at PACMAT_Ghosts_001.m. (Right click, 'save link as'). Using patches (not sprites).
Alfonso PACMAT Random Ghost Video (MP4: Left click and Windows Media Player)
Alfonso's Enhanced Ghost Avoider (MP4)
The reference solution uses Alfonso's Local Optimum Algorithm with a Catch.
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
Scoring: Total # of Moves to Clear the Yellow Dots +(LivesRemaining-3)*100
Near Future: Ghosts will get brighter.
Future: Player will be Team Ghosts versus PACMAT_BOT
Solution Stats
Problem Comments
-
1 Comment
really enjoying this series, keep them coming!
Solution Comments
Show commentsGroup

Computational Geometry III
- 20 Problems
- 9 Finishers
- LASER Tracker - Mirror Distance and Angle
- Distance between two GPS Coordinates
- Spherical surface triangulation
- Do the line-segments intersect?
- Esoteric Trigonometry
- LASER Tracker - Mirror Distance and Angle
- Do the line-segments intersect?
- Spherical surface triangulation
- Parallel vectors
- Vector parallel to plane?
- distance to a straight line (2D) given any 2 distinct points on this straight line
- Slicing the cube
- Pairwise Euclidean Distance
- Wayfinding 1 - crossing
- Wayfinding 2 - traversing
- Wayfinding 3 - passed areas
- Avalaible area: wall construction
- rectangle in circle
- Distance between two GPS Coordinates
- Cut an orange
- Packing oranges - one layer
- Radiation Heat Transfer — View Factors (1)
- Radiation Heat Transfer — View Factors (2)
- Radiation Heat Transfer — View Factors (3)
- Esoteric Trigonometry
Problem Recent Solvers9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!