Question: get _ next ( ) This function should accept two parameters named row and col. These parameters are expected to be integers 0 8 representing
getnext This function should accept two parameters named row and col. These parameters are expected to be integers representing the location of a specific cell. The function should return two integers, which should be the row and column indices for the next cell in the puzzle, assuming we are moving through the rows lefttoright and toptobottom. If col is less than then we are not at the last column and need to advance one more column. The function should return row and col If col is equal to and row is less than the we are in the last column of a row, but are not at the last row. To advance to the next row, the function should return row and If col and row are both equal to then we are at the last row and the last column and can advance no further. The function should return None and None.
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
