Sokoban by Czar3k
Sokoban game implementation without GUI. Game board is simply figure object composed of concatenated images.
Keys pressed are read by the game algorithm by @key_pressed_fcn function. Image of the board is modified accordingly.
Steering: arrows, n = next level, r = restart level
Change the path (including level folder, 7 are available) in line 12 of LoadLevel.m file to yours.
Lauch the game with LoadLevel(level number).
Enjoy!
Code can be easily modified (time counter, move-back option, etc...)
Cite As
Michal Krupka (2024). Sokoban by Czar3k (https://www.mathworks.com/matlabcentral/fileexchange/56050-sokoban-by-czar3k), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.