Github source address: github.com/richenyunqi… Star oh ~~ღ(´ ᴗ · ‘) than heart

Minesweeper main interface module

The entire minesweeper interface is displayed with a large number of white squares. When the game software is just running, the complete display of the game interface is as follows:

The player can use the left mouse button to randomly click on a square, which will be opened and show the number in the square. The number in the square indicates how many mines are hidden in the surrounding squares (up to 8). In the case of the above, the display picture after left-clicking on a square is as follows:

If the open grid is blank, that is, there are 0 mines around it, the surrounding grid will automatically open. If there are still blank grids around it, it will continue to open and trigger a chain reaction. In the case above, the display picture after clicking a blank grid is as follows:

Players can right click on the grid where they think there is lightning, and a red flag image will be displayed on the grid, indicating that this area is marked as a minefield. The display figure of right click in the case of the above picture is as follows:

Click the right button again, and a question mark image will be displayed on the grid, indicating that the grid is not sure whether there is thunder or not. In the case of the above right click, the display picture is as follows:

Click the right button for the third time, and the grid will return to normal. In the case of the above right button, the display picture is as follows:

If all the mines around an open grid have been correctly marked, you can click the left and right mouse button on the grid at the same time to open the remaining non-reg fields around it. In the case of the above right click, the display picture is as shown below:

At the end of the game, the main screen will be marked with a green check mark for correctly marked minefields, a Red Cross for incorrectly marked minefields, and a black image of explosives for unmarked minefields. When all the minefields are cleared, the game wins, and the game screen for a certain moment of game victory looks like this:

If the winning time of the game is lower than the record of the corresponding level in the minesweeper heroes list, a dialog box will pop up to prompt the user to enter his/her name to refresh the record in the minesweeper heroes list, as shown in the picture below:

When the left button is clicked on the minefield, the game fails. The game interface of a certain moment of game failure is as shown in the picture below:

Menu Function module