Answered step by step
Verified Expert Solution
Link Copied!

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:

  1. Create a new Winforms solution in Visual Studio.
  2. 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.
  3. 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.
  4. There are several "expected" features in the classic Minesweeper game. Be sure to implement these into the project:
    1. 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.
    2. 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.
    3. 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.
  5. 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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Digital Systems Design Using Verilog

Authors: Charles Roth, Lizy K. John, Byeong Kil Lee

1st edition

1285051076, 978-1285051079

More Books

Students also viewed these Operating System questions

Question

What is a budget? (p. 314)

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago