easy_solve | R Documentation |
This function is designed strictly to solve easy sudokus ie. ones with more than 36 clues, but it can sometimes solve medium hard sudokus (27 to 36 clues).
easy_solve(board)
board |
The 9 by 9 sudoku grid in form of a numeric matrix. |
It solves the sudoku deterministically and might be faster than solve_sudoku()
, but
it has two major drawbacks:
can't determine if a sudoku is solvable and can't also determine if it can solve
a given sudoku. If it takes more than 2 seconds please use solve_sudoku()
.
Use carefully.
if sudoku is solvable it returns TRUE
solve_sudoku()
b2 <- sample_boards()[[2]] easy_solve(b2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.