Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# Minesweeper game Milestone 5: Combining GUI and Game Logic Overview In this milestone, students will add the game play logic to their GUI application.
C# Minesweeper game Milestone 5:
Combining GUI and Game Logic
Overview
In this milestone, students will add the game play logic to their GUI application.
Execution
Execute this assignment according to the following guidelines:
- Create a new Winforms solution in Visual Studio.
- Import the console app as a second project to the new solution. The second project should be a copy of the existing console app project, which includes the Board and Cell classes. The main program console app file is no longer needed.
- The new form in the GUI application will accomplish the tasks of the console app did including getting input and displaying the board. However, the new interface uses buttons instead of printed text to communicate with the user. The text or image on each button will depend on the value stored in the Board class.
- There are several "expected" features in the classic Minesweeper game. Be sure to implement these into the project:
- If a user clicks on a mine, the entire game board is revealed with "bomb" pictures on the mines and a "Game Over" message is displayed.
- If a user successfully exposes all squares without clicking on a mine, the entire game board is revealed with "flag" pictures on the mines and a "You Win" message is displayed.
- If a user right-clicks on a square, a "flag" picture is placed on the square. Right-click has not been demonstrated in previous tutorials, so you will have to research how to do the right-click event.
- Add a stop watch to the application and record the length of time it takes a player to win the game. Display the elapsed time with the "You Win" message.
Step by Step Solution
★★★★★
3.43 Rating (162 Votes )
There are 3 Steps involved in it
Step: 1
There is a 8x8 board where 10 mines are located Each round you will provide the line number a...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started