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`
SudokuInfo
​
SudokuInfo
[sudoku,rules]
returns an association with information about the sudoku.
​
Details and Options

Examples  
(5)
Basic Examples  
(5)
In[1]:=
sud=
SudokuFromString
["6$ISD6LD@v1@8sIKgWm2HTrVp7Atxed5$JPiBONlALKnu&O5rc!HzR33Rc33q5qzU#G9PV8uF9Kk%fy||3MOBMwEhZ4H"]
Out[1]=
​
In[1]:=
sud=
SudokuFromString
["27lvaz!N#HJcE$wjf@53FeJK3pqOcGNesMMSu0R$P87nC"]
Out[1]=
The sudoku has no solutions (found without backtracking):
In[2]:=
SudokuInfo
[sud]
Out[2]=
Solutions0,Clues24
​
In[1]:=
sud=
SudokuFromString
["4Yfc6mGBZTdR87bbM2n9xCnfIZlLW1Pnjecx9Dpn#"]
Out[1]=
The sudoku cannot be solved with our set of logical rules, but has a unique solution:
In[2]:=
SudokuInfo
sud,Append
$AllRules
,"BackTracking"
SolveSudoku
::steps
:The result was found in 57 steps.
​
Out[2]=
Solutions1,Clues24,CandidateSets2,HiddenPairs1,ThreeGroups1,BackTracking1
​
In[1]:=
sud=
SudokuFromString
["1ZAQ8eNKJQM&Tln2QWQ@9d&TCXZwN9yQ&7#Ucq$Z2mW"]
Out[1]=
The sudoku cannot be solved with our logical rules:
In[2]:=
SudokuInfo
[sud]
Out[2]=
Solutionsnot found,Clues25
With backtracking we find that the sudoku has more than one solution:
In[3]:=
SudokuInfo
sud,Append
$AllRules
,"BackTracking"
SolveSudoku
::steps
:The result was found in 9 steps.
​
Out[3]=
Solutions2,Clues25
​
In[1]:=
sud=
SudokuFromString
["8xy8#o5NKX&4!s6&vIN44kjB#FWgBcVe8zdvZWiscrD"]
Out[1]=
The result of the function
SudokuInfo
depends on the order of the rules:
In[2]:=
SudokuInfo
[sud,{"Singles","HiddenSingles","CandidateSets","HiddenPairs"}]
Out[2]=
Solutions1,Clues25,Singles20,HiddenSingles4,CandidateSets1,HiddenPairs2
In[3]:=
SudokuInfo
[sud,{"Singles","HiddenSingles","HiddenPairs","CandidateSets"}]
Out[3]=
Solutions1,Clues25,Singles20,HiddenSingles4,HiddenPairs2
SeeAlso
SolveSudoku
 
▪
ReduceSudoku
 
▪
$AllRules
TechNotes
▪
Logical Rules for Solving a Sudoku
RelatedGuides
▪
Sudoku Hints
""

© 2025 Wolfram. All rights reserved.

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