This is a Simulink Model of a 3x3 puzzle. This is a children's game where we could slide the tiles and make the numbers in the consecutive order. The moves are hardcoded. Based on where the blank tile is a certain set of moves are possible. This is modeled as an exchange of tiles. This has not been made as generic. A Matlab code could perhaps make it easier to model a generic N x N square. Simulink Design Verifier solves the tiles problem.
Yogananda Jeppu (2021). A Three by Three Puzzle (https://www.mathworks.com/matlabcentral/fileexchange/64443-a-three-by-three-puzzle), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!