You are initially shown all grids as obscured, by a single dot '.'.The grid is shown as a rectangle of characters between moves.Each mine occupies a single grid point, and its position is initially unknown to the player.The total number of mines to be found is shown at the beginning of the game.The top left of the grid is position 1,1 the bottom right is at n,m. Positions in the grid are modified by entering their coordinates where the first coordinate is horizontal in the grid and the second vertical. There is an n by m grid that has a random number (between 10% to 20% of the total number of tiles, though older implementations may use 20%.60% instead) of randomly placed mines that need to be found. Hope you enjoy this game.You are encouraged to solve this task according to the task description, using any language you may know. Your critics and comment are welcomed, especially if you find a bug in this game. You can download this game from my MATLAB Fun Toolbox pages. After another half hour, it is finally done :D.Ībove are several screenshots of my minesweeper game. So to overcome this, I decided to go wild, break the format, and offer a new gameplay (means that I still don’t know how to get input from right clicking in MATLAB). Last weekend, I toss my thesis aside and spent two hours making the minesweeper game and turns out that I have a problem in creating function for marking the bomb (which is done by right-clicking in Window’s miesweeper). Since minesweeper is a single player game and do not requires any AI in it, it will be relatively easier to make than TicTacToe. After I post my TicTacToe game in MATLAB, a friend of mine challenges me to make minesweeper game in MATLAB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |