Professional Documents
Culture Documents
WITH BRAINS
(MINESWEEPER
)
DESCRIPTION
Minesweeperis
asingle player video
game. The object of
the game is to clear
an
abstractminefieldwit
hout detonating a
mine. The game has
been written for
manysystem
platformin use today.
How to play
Minesweeper(continued)
Understand
what the
numbers mean.
If you see a 1 on
the board, it
means that
square is touching
exactly 1 mine.
How to play
Minesweeper(continued)
Eliminate squares that
can't possibly contain
mines by clicking. Say
you found a 1, and you're
pretty sure where the
mine for that 1 is. You
can click all the other
squares around that 1 to
open them, because the
1 can only be in contact
with a single mine.
How to play
Minesweeper(continued)
Right-click to
identify mines.
When you're
reasonably certain
you've found a mine,
identify it by rightclicking on the
square. This will put
a flag on the mine,
and prevent you
How to play
Minesweeper(continued)
Keep moving
through a process
of elimination. As
you go around the
board, flag potential
mines. If you find that
you've flagged more
mines than the game
allows, go back and reevaluate them.
OUR SOLUTION
The functions for the game board
were originally written in C++
The GUI was originally written in
C#
After trying to link the two
different languages, we opted to
covert our C++ code into C# and
have all of the code be in one file
When user clicks the button with empty space then it will
open all the near buttons that the button is connected with,
which either has an empty space or a no. on the button.
When user clicks the button which is a bomb then it will
display a message that you lost the game and will also show
the time at which you lost the game and navigate to another
page which has 3 options for exit, restart and another level.
User wins the game when all the buttons has been opened
except the buttons with a bomb.
If user does not know which button contains the bomb and
does not want to lose the game then he can opt for flag
button which is a guess button. First he will click on the flag
button then on the button which he wants to guess, it will
show a flag image and decrement the value of k from 10 to 9
which will show in another button. If user wants to open the
guessed button now or later then first he will click the flag
button which will increment k from 9 to 10 again and then will
click on a button with a flag image, it will show the question
mark image showing user has open the guessed button and
Results
In the end, we
have created a
very functional
Minesweeper
game that very
closely resembles
the original
Windows version.
Thank you !