The most direct solution (fewest moves) can be searched for.
You can choose how "moves" are defined/counted.
To use, enter level information into puzzle.m, then run puzzle.m.
When a solution is found, a quick animation then a user-controlled mode help you view the solution (in addition to the solution being output to the Command Window).
Bradley Knockel (2020). Unblock-Car Game Solver (https://www.mathworks.com/matlabcentral/fileexchange/63368-unblock-car-game-solver), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!