Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Solve a sudoku puzzle
ResourceFunction["SolveSudokuPuzzle"][mat] solves a sudoku puzzle with the input mat specified by a SparseArray matrix. |
Solve a standard Sudoku puzzle:
In[1]:= | ![]() |
Out[2]= | ![]() |
Solve a 16⨯16 Sudoku puzzle:
In[3]:= | ![]() |
Out[4]= | ![]() |
Generate a full standard Sudoku board by specifying the diagonal elements:
In[5]:= | ![]() |
Out[5]= | ![]() |
Generate a full 16⨯16 Sudoku board by randomly specifying the first column:
In[6]:= | ![]() |
Out[6]= | ![]() |
Generate a Sudoku board by specifying elements that cannot exist at certain positions:
In[7]:= | ![]() |
Out[7]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License