Run main.m can start up the game. The figure BackGroundColor and ForeFroundColor is different each time it is run. The row number and column number is changable and so is desity of bombs.
When user click pushbottom , if hit bomb, game over; If not ,the number of bombs around it can be seen. User can right-click the pushbutton to set a flag to avoid bombs.
All game is developped by m script and functions.
Zitieren als
Zhongxiao Sun (2024). Mine Sweeping.zip (https://www.mathworks.com/matlabcentral/fileexchange/47475-mine-sweeping-zip), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | Text update. |
||
1.0.0.0 |