find_empty | R Documentation |
This function finds the next empty/unfilled cell in a sudoku grid. It starts from the left topmost cell through all cells in that row then onto the next row and so on.
find_empty(board)
board |
A sudoku board/grid. |
A numeric vector giving the row and column of the empty cell. Returns NULL if all cells are filled.
find_empty(sample_boards()[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.