Вы находитесь на странице: 1из 2

Matlab Project Fall 2010

Project Title Minesweeper computer game

Preferred Group Size 2 from the same class

Project Due Date Week of 26th in Class

Project Description:

Minesweeper is a simple logic game commonly found on many computers. The object of the
game is to clear an abstract minefield (board squares) without blowing up a mine.

1. To begin, you first choose a level to play; the player selects the level in the game through a pop-up
menu Based on this choice, the appropriate number of board squares is displayed. Level one has 4 * 4
(16 board squares) and level two has 5*5 (25 board squares). Initially, all of the squares on the
board are "covered up" and no information is given to indicate the location of the mines.

2. After the level to play is selected, the total numbers of mines that
are hidden in the board squares should be appear in a text box.
Possible numbers of mines should not exceed 5 mines in both levels.

3. The player clicks on a board. Either a number, blank or mine


square appears, player’s job is to either deduce or guess which
board squares are clear of mines. If successful, this number will
indicate the number of mines to be found in the squares adjacent
to the square with the number.

Obviously, the first move of the game must be a guess because


no information is provided. Since the board is a rectangular grid,
each internal square has exactly 8 neighboring squares, edge
squares have 5 neighbors, and corner squares have 3 neighbors.
Therefore, the number found under any given square will be in the range of 0 to 6 (inclusive).
Game play continues until the player has uncovered (or "stepped" on) each and every square that
does not hide a mine, while successfully avoiding all of the mines. If the player can do this, they
are considered to have won the game. However, if at any point the player attempts to uncover a
square that contains a mine, the game immediately ends and the player is said to have lost.

4. Your game should have one menu named “Game” with 2 submenus’s, one named “New “for
reset the game and the other named “Exit” for ending the game.

1|Page
Instructions

 Project submission is during the week of 26/12/2010 during the lab. There will be no
extensions for the deadline.

 You have to submit a hardcopy report (no more than 7 pages including the title page) that
includes :
• List of MATLAB functions that you used and description on how to use your
application supported by examples. You will not be allowed to present your
project without a hardcopy.
• The flowcharts.
• The contribution of each student in the project!

 You should present and demonstrate the working GUI in the lab. A short Q&A session
will be conducted to test your understanding.

 This is a self-effort project. Thus, no cooperation with other students is allowed. Grading
is based on the operation of your GUI, report, and demonstration.

 Never think of buying a model or commissioning someone to do it for you, not only will
you get a zero in the project, but also your act will be considered as a direct violation to
JU laws and your actions shall be reported as cheating in the final exam!

 Divide the work such that each student is responsible for a specific task. Nonetheless, each
group member is required to answer for ANY QUESTIONS in relation to any submitted work
of the project.

 Bonus points will be given for any additional functionality that you may add.

2|Page

Вам также может понравиться