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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started