Question: I ' m writing a call function for a classic Minesweeper C + + program, please follow the following requirements to complete this call function

I'm writing a call function for a classic Minesweeper C++ program, please follow the following requirements to complete this call function on the basis of the existing code, thank you very much. (This function is used to explore the unknown lattice, like a minesweeper on a computer, if it has a "*" around it, then it will display the number of "*" around it and pass the exploration instruction to the other "." adjacent to it.) If there is no "*" around it, it will become a space and will also pass the exploration command to the other "."
There is another pointplease use recursion instead of else if.
// TODO: Implement countCharFromMapUsingRecursion
// This function explores (i.e., updates) the current map
// Note: You MUST USE recursion to implement this function
//0 marks will be given if you use loops to implement this function
//
// @param realMap: The 2D array storing the real map information
// @param currentMap: The 2D array storing the current map (i.e., the exploring map) information
// @param numRows: The number of rows for the maps (both maps have the same size)
// @param numCols: The number of columns for the maps (both maps have the same size)
// @param row: The row index to explore
// @param col: The col index to explore
void exploreMapUsingRecursion(const char realMap[MAX_ROWS][MAX_COLS], char currentMap[MAX_ROWS][MAX_COLS],
int numRows, int numCols, int row, int col)
{
}
I ' m writing a call function for a classic

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 Programming Questions!