makePuzzle.zip
Version 1.0.0.1 (452 KB) by
Brett Shoelson
Create and solve 15- (sliding-block) puzzles with default or custom images.
Create and solve 15-puzzles with default or custom images.
MATLAB randomizes sub-regions of the image, and keeps track of the number of moves and time it takes you to solve the puzzle. You can show or hide sub-image labels.
NOTE: 15-Puzzles are also known as:
Sliding-Block Puzzle
Gem Puzzle
Boss Puzzle
Game of Fifteen
Mystic Square
Cite As
Brett Shoelson (2026). makePuzzle.zip (https://www.mathworks.com/matlabcentral/fileexchange/46610-makepuzzle-zip), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
