Question: a) Complete a basic Java console minesweeper game with 10x10 grid and 10 randomly distributed mines. b) When the game starts, your program prints out

 a) Complete a basic Java console minesweeper game with 10x10 grid
and 10 randomly distributed mines. b) When the game starts, your program
prints out a 10x10 grid and prompts the user to enter the
coordinates of the first cell to uncover. The game shows the resulting

a) Complete a basic Java console minesweeper game with 10x10 grid and 10 randomly distributed mines. b) When the game starts, your program prints out a 10x10 grid and prompts the user to enter the coordinates of the first cell to uncover. The game shows the resulting grid and prompts for new coordinates. The process will repeat, and the game ends when there is no more non-mined cell to uncover (win) or the player uncovers a mine (lose). c) If a user wins, display a message 'Congratulations! You win! Do you want to replay (Y/N)?' If the user enters 'Y', replay. Else, end the game. If the user loses, display a message 'Sorry, you lose! Do you want to replay (Y/N)?' If the user enters 'Y', replay. Else, end the game. d) Submit the following documents/ files here: d.1) Design - pseudocode and design document in plain text or word file format. d.2) Java Project - Submit java files. d.3) Test Log - brief description and screen capture of your testing and debugging process in plain text or word file format with time stamps (date and time). d.4) Teamwork Log - plain text or word file, describe names if your team members, how do you split the work, and each person's responsibilities and contributions. When the game starts, 1) Prompt the user to enter the size of the grid between 10x10 and 30x30. 2) Prompt the user to enter the number of mines between 10 and 30. Example of user and Java program interactions: 1 2 1 ? ? 2 ? ? 3 ? ? 4 ? ? 5 ? ? 6 ? ? 7 ? ? 8 ? ? 9 ? ? 10 ? 3 ? ? ? ? ? ? ? ? ? ? 4 ? ? ? ? ? ? ? ? ? ? 5 ? ? ? ? ? ? ? ? ? ? 6 ? ? ? ? ? ? ? ? ? ? 7 ? ? ? ? ? ? ? ? ? ? 8 ? ? ? ? ? ? ? ? ? ? 9 ? ? ? ? ? ? ? ? ? ? 10 ? ? ? ? ? ? ? ? ? ? 2 2 There are a total of 10 mines. You have 3 chances to open the grid. Enter the coordinates of a cell (x,y) to start: 3,2 NN AWN 1 2 1 ? 3 ? ? ? ? 5 ? 4 6 ? ? 7 ? ? 8 I ? ? ? 10 ? ? 3 4 5 1 ? ? 1 ? 1 2 1 ? ? 2 ? ? ? ? ? ? ? ? ? ? ? ? 6 7 8 9 ? ? ? ? ? ? ? ? ? ? ? ? 2 ? ? ? 2 ? ? ? 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 10 ? ? ? ? ? ? ? ? ? ? There are 10 mines left. Enter the coordinates of a cell (X. y) and 'F' to place a flag on a mine, or the coordinates and 'C' to clear up / check the adjacent cells: 2,2 F 1 2 3 1 ? 3 1 2 F 3 2 4 ? ? 5 2 4 2 6 2 ? ? 7 2 2 8 2 2 ? 9 ? ?? 10 77 ? 4 5 2 ? 2 ? 1 ? 1 1 ? 2 7 2 7 2 2 2 ?? 6 7 8 ? ? 2 ? ? ? ? ? ? 2 ? ? 2 ? 2 1 ? 2 2 ? ? ? 2 ? ? ? ? ? ? 9 ? ? ? ? ? ? 10 ? ? ? ? ? ? 7 ? 2 2 ? There are 10 mines left. Enter the coordinates of a cell (x,y) and 'F' to place a flag on a mine, or the coordinates and 'C' to clear up / check the adjacent cells: 22 F 2 -NNA 4 5 6 ? ? 2 ? ? 1 ? ? 1 F 10 ? ? ? 7 8 ? ? ? ? ? ? ? ? NN- 1 1 ? 2 ? 3 ? 4 ? 5 ? I 6 ? 7 ? 2 9 ? 10 ? ? ? 4 ? ? ? ? ? 2 ? ? 1 ? ? ? ? ? 9 ? ? ? ? ? ? ? ? ? ? 2 ? ? ? ? ? 1 ? ? ? ? ? ? 2 ?? ? ? ? ? ? ? ? ? 2 ? ? ? ? You have uncovered 1 mine, and there are 9 mines left. Enter the coordinates of a cell (x,y) and "F to place a flag on a mine, or the coordinates and C to clear up/check the adjacent cells: a) Complete a basic Java console minesweeper game with 10x10 grid and 10 randomly distributed mines. b) When the game starts, your program prints out a 10x10 grid and prompts the user to enter the coordinates of the first cell to uncover. The game shows the resulting grid and prompts for new coordinates. The process will repeat, and the game ends when there is no more non-mined cell to uncover (win) or the player uncovers a mine (lose). c) If a user wins, display a message 'Congratulations! You win! Do you want to replay (Y/N)?' If the user enters 'Y', replay. Else, end the game. If the user loses, display a message 'Sorry, you lose! Do you want to replay (Y/N)?' If the user enters 'Y', replay. Else, end the game. d) Submit the following documents/ files here: d.1) Design - pseudocode and design document in plain text or word file format. d.2) Java Project - Submit java files. d.3) Test Log - brief description and screen capture of your testing and debugging process in plain text or word file format with time stamps (date and time). d.4) Teamwork Log - plain text or word file, describe names if your team members, how do you split the work, and each person's responsibilities and contributions. When the game starts, 1) Prompt the user to enter the size of the grid between 10x10 and 30x30. 2) Prompt the user to enter the number of mines between 10 and 30. Example of user and Java program interactions: 1 2 1 ? ? 2 ? ? 3 ? ? 4 ? ? 5 ? ? 6 ? ? 7 ? ? 8 ? ? 9 ? ? 10 ? 3 ? ? ? ? ? ? ? ? ? ? 4 ? ? ? ? ? ? ? ? ? ? 5 ? ? ? ? ? ? ? ? ? ? 6 ? ? ? ? ? ? ? ? ? ? 7 ? ? ? ? ? ? ? ? ? ? 8 ? ? ? ? ? ? ? ? ? ? 9 ? ? ? ? ? ? ? ? ? ? 10 ? ? ? ? ? ? ? ? ? ? 2 2 There are a total of 10 mines. You have 3 chances to open the grid. Enter the coordinates of a cell (x,y) to start: 3,2 NN AWN 1 2 1 ? 3 ? ? ? ? 5 ? 4 6 ? ? 7 ? ? 8 I ? ? ? 10 ? ? 3 4 5 1 ? ? 1 ? 1 2 1 ? ? 2 ? ? ? ? ? ? ? ? ? ? ? ? 6 7 8 9 ? ? ? ? ? ? ? ? ? ? ? ? 2 ? ? ? 2 ? ? ? 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 10 ? ? ? ? ? ? ? ? ? ? There are 10 mines left. Enter the coordinates of a cell (X. y) and 'F' to place a flag on a mine, or the coordinates and 'C' to clear up / check the adjacent cells: 2,2 F 1 2 3 1 ? 3 1 2 F 3 2 4 ? ? 5 2 4 2 6 2 ? ? 7 2 2 8 2 2 ? 9 ? ?? 10 77 ? 4 5 2 ? 2 ? 1 ? 1 1 ? 2 7 2 7 2 2 2 ?? 6 7 8 ? ? 2 ? ? ? ? ? ? 2 ? ? 2 ? 2 1 ? 2 2 ? ? ? 2 ? ? ? ? ? ? 9 ? ? ? ? ? ? 10 ? ? ? ? ? ? 7 ? 2 2 ? There are 10 mines left. Enter the coordinates of a cell (x,y) and 'F' to place a flag on a mine, or the coordinates and 'C' to clear up / check the adjacent cells: 22 F 2 -NNA 4 5 6 ? ? 2 ? ? 1 ? ? 1 F 10 ? ? ? 7 8 ? ? ? ? ? ? ? ? NN- 1 1 ? 2 ? 3 ? 4 ? 5 ? I 6 ? 7 ? 2 9 ? 10 ? ? ? 4 ? ? ? ? ? 2 ? ? 1 ? ? ? ? ? 9 ? ? ? ? ? ? ? ? ? ? 2 ? ? ? ? ? 1 ? ? ? ? ? ? 2 ?? ? ? ? ? ? ? ? ? 2 ? ? ? ? You have uncovered 1 mine, and there are 9 mines left. Enter the coordinates of a cell (x,y) and "F to place a flag on a mine, or the coordinates and C to clear up/check the adjacent cells

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!