Question: I ' m writing a call function for a classic Minesweeper C + + program, please follow the following requirements to complete this call function
Im 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 ie updates the current map
Note: You MUST USE recursion to implement this function
marks will be given if you use loops to implement this function
@param realMap: The D array storing the real map information
@param currentMap: The D array storing the current map ie 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 exploreMapUsingRecursionconst char realMapMAXROWSMAXCOLS char currentMapMAXROWSMAXCOLS
int numRows, int numCols, int row, int col
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
