Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display a killer sudoku puzzle
ResourceFunction["DisplayKillerSudokuPuzzle"][pos,vals] displays a killer sudoku puzzle based on the position pos of cages and the values vals associated with the cages. |
Display a killer sudoku board for specified cage positions and values:
In[1]:= |
Out[2]= |
The sudoku matrix associated with the above puzzle can be used to check the validity of the puzzle by summing the elements of each cage:
In[3]:= |
Out[3]= |
The cage positions are a List of sublists where each sublist contains the positions within that cage:
In[4]:= |
Out[4]= |
The cage values are the sums of the numbers at each position in the cage:
In[5]:= |
Out[5]= |
Create a board from the positions and values:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License