Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

SudokuHints

Guides

  • Sudoku Hints

Tech Notes

  • Logical Rules for Solving a Sudoku
  • Representation of a Sudoku
  • String Representation of a Sudoku

Symbols

  • BackTracking
  • bla
  • CandidateSet
  • CellSize
  • Clues
  • ColoredCells
  • ColoredGroupColor
  • ColoredGroups
  • CommonCellColor
  • ConjugateLists
  • DiskCells
  • Disks
  • DoubleCandidate
  • DoubleCandidate
  • EditClues
  • EditColoredGroups
  • EditLineGroups
  • EditOutlinedGroups
  • EditSudoku
  • EnterClues
  • EnterSudoku
  • ExcludeCommonCells
  • ExportSudoku
  • ExtendSudoku
  • ExtraBlockCellColor
  • ExtraBlocks
  • GenerateSudokus
  • HiddenPair
  • HiddenPairs
  • HiddenQuadruple
  • HiddenQuadruples
  • HiddenSingle
  • HiddenSingles
  • HiddenTriple
  • HiddenTriples
  • Hints
  • IncludeCandidates
  • LineGroups
  • LockedCandidates
  • MaxClues
  • MaxSolutions
  • MaxSteps
  • MonitorSteps
  • NumericalString
  • OutlinedGroups
  • Pair
  • Pairs
  • QuadrupleCandidate
  • Quadruple
  • ReduceClues
  • ReduceSudoku
  • SetDisplay
  • SetDisplayOptions
  • SetSdokuOptions
  • SetSudokuOptions
  • ShowCandidates
  • ShowInfo
  • Single
  • Singles
  • SolveSudoku
  • SudokuFromString
  • SudokuHints
  • SudokuInfo
  • Sudoku
  • SudokuToString
  • SwordFish
  • ThreeGroups
  • TripleCandidate
  • Triple
  • Triples
  • XRule
  • XXXMaxSteps
  • XYChain
  • XYZWing
  • YWing
  • ZZZExtraBlocks
  • ZZZLockedCandidates
  • $AllRules
  • $Sudoku
FredSimons`SudokuHints`
ExtendSudoku
​
ExtendSudoku
[sudoku,maxclues,rules]
tries to construct a sudoku with the same groups as the given sudoku and at most maxclues clues that has a unique solution that can be found with the given rules.
​
Details and Options

Examples  
(2)
Basic Examples  
(2)
This gives a standard sudoku with at most 28 clues that can be solved with the rules Single, HiddenSingle and CandidateSet:
In[1]:=
sud=
ExtendSudoku

Sudoku
[],28,{"Single","HiddenSingle","CandidateSet"},
ShowCandidates
False​​
SudokuInfo
[sud]​​
Out[1]=
Contents cannot be rendered at this time; please try again later or download this notebook for full functionality »
Out[2]=
Solutions1,Clues28,Singles14,HiddenSingles4
​
In the following way we construct a sudoku that cannot be solved with the rules Single and HiddenSingle alone:
In[1]:=
rules={"Singles","HiddenSingles","BackTracking"};​​While​​sud=
ExtendSudoku

Sudoku
[],29,rules;​​info=
SudokuInfo
[sud,rules];​​Not@KeyExistsQ[info,"BackTracking"]​​;​​sud​​info
SolveSudoku
::steps
:The result was found in 3 steps.
Out[1]=
Contents cannot be rendered at this time; please try again later or download this notebook for full functionality »
Out[1]=
Solutions1,Clues29,Singles7,HiddenSingles1,BackTracking1
Of course, this does not mean that backtrackig is really needed:
In[2]:=
SudokuInfo
sud,
$AllRules

Out[2]=
Solutions1,Clues29,Singles12,HiddenSingles3,CandidateSets1,HiddenPairs1,ThreeGroups1
SeeAlso
Sudoku
 
▪
SolveSudoku
 
▪
ReduceClues
 
▪
GenerateSudokus
RelatedGuides
▪
Sudoku Hints
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com