Question: Java please! (part of a simplified mineSweeper game) * This method iterates through all 8 neighboring locations and calls sweepLocation * for each. It does

Java please! (part of a simplified mineSweeper game)

* This method iterates through all 8 neighboring locations and calls sweepLocation * for each. It does not call sweepLocation for its own location, just the neighboring * locations. * @param map The map showing touched locations. * @param mines The array showing where the mines are located. * @param row The row, 0-based, of a location. * @param col The col, 0-based, of a location. */

with the header: public static void sweepAllNeighbors(char [][]map, boolean[][] mines, int row, int col)

And the method sweepLocation has the header: public static int sweepLocation(char[][] map, boolean[][] mines, int row, int col)

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!