Question: In eclipse or Dr Java I really need help! Lab 00 Mine Counter! Objective: Write a program that creates a 10x10 multi-dimensional array, places 10
Lab 00 Mine Counter! Objective: Write a program that creates a 10x10 multi-dimensional array, places 10 mines in random locations on the board, and finally counts the number of mines an empty space is neighboring 8 squares. For reference this works similarly to functionality in the game "Minesweeper". Then finally demonstrate that the program can create an empty board, populate it with mines, and finally count mines by using its The example above shows the center squares value is based on the number of mines "*") that surrounds its 8 neighbors. Tips and Hints: import java.util.Random; Make sure exactly 10 mines are placed in the board. If a mine already exists in that space then randomly pick another space until there are 10. This may require a loop. g each of the functionalities required into multiple methods may be extremely beneficial . A multi-dimensional array of enums, Strings, or even ints can solve this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
