powered by
This function checks if it is possible to put a given number in a given empty cell
ispossible(x, i, j, n)
A sudoku grid
The index of the row of the given cell
The index of the column of the given cell
The number that we want to check if is possible to put it in the cell of the index (i,j)
True if it is possible to put n in the cell (i,j)
n
# NOT RUN { ispossible(x=grid_gen_cplt(),4,5,6) ispossible(x=grid_gen_cplt(),4,5,6) # }
Run the code above in your browser using DataLab