440 likes | 1.41k Views
Minesweeper. By Allan Cooke Jon Hilliard. Description. We set out to recreate the ever so popular Minesweeper game that Windows users love so much. Our Solution. The functions for the gameboard were originally written in C++ The GUI was originally written in C#
E N D
Minesweeper By Allan Cooke Jon Hilliard
Description • We set out to recreate the ever so popular Minesweeper game that Windows users love so much.
Our Solution • The functions for the gameboard 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
More on the Solution • Our solution consisted of two classes outside of the GUI • Square class, which held all of information on mines, neighbors, flags, uncovered, and the graphical label • Gameboard class which populated an array of squares and allowed the square class to determine things such as neighbors
Results • In the end, we have created a very functional Minesweeper game that very closely resembles the original Windows version.
Each of Our Roles • Both of us worked on both aspects of the game • Jon was more centered on the actual code and functions in C++ • Allan worked more on the GUI aspect of the game • We both had to work together though in order to incorporate both aspects into one program
Future Work • We could add more features to the Minesweeper game including • Timer • Different Difficulty levels • Mine Count for the Different levels • High score tracker • Add the feature from the original Minesweeper that allows you to click both mouse buttons at once on a square with the correct amount of flags placed around it to reveal the squares around it
References • Jagger, Jon and John Sharp, Microsoft Visual C# .NET Step by Step, Microsoft Press, Redmond Virginia, 2002. • http://www.dotnet247.com • Visual Studio .NET help files • Drayton Peter, Ben Albahari, and Ted Neward, C# in a Nutshell, O’Reilly and Associates, Inc., Sebastopol, California, 2002.