Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Solve Sudoku puzzles
ResourceFunction["SudokuSolve"][data] treats a 9×9 matrix of data as a partially solved Sudoku puzzle and replaces all elements that are not integers from 1 to 9 with the correct elements to fully solve the puzzle. |
Solve a puzzle:
In[1]:= |
Out[1]= |
The option "ShowSteps" shows when it was necessary to guess values rather than use pure logic:
In[3]:= |
Out[3]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License