1 / 8

Minesweeper

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#

nijole
Download Presentation

Minesweeper

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Minesweeper By Allan Cooke Jon Hilliard

  2. Description • We set out to recreate the ever so popular Minesweeper game that Windows users love so much.

  3. 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

  4. 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

  5. Results • In the end, we have created a very functional Minesweeper game that very closely resembles the original Windows version.

  6. 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

  7. 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

  8. 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.

More Related