Guide
How to Solve Sudoku Using Logical Techniques
Logical solving updates a persistent candidate map. It does not peek at a stored answer to justify an ordinary step. Ninefold Logic applies techniques in a documented order: naked single, hidden single, pointing, claiming, naked pair, hidden pair, naked triple, hidden triple, X-Wing, Swordfish, XY-Wing. The hint analyzer and the techniques laboratory use that same engine.
Candidate elimination
Start from the constraint definition. A candidate that already appears in the row, column, or region is not locally available. After a placement, peers lose that symbol. Later techniques only remove candidates that the pattern actually forbids. The engine does not reintroduce a candidate that a valid earlier step eliminated merely because a raw row-column-region recount would put it back.
Naked singles
If a cell’s remaining set is {7}, and the current map is consistent, that cell is 7. Example on 4×4: row 1 contains 1, 2, 3 and the last cell’s column and region still allow 4. The candidate set is {4}. That is a naked single, not a hidden single.
Hidden singles
Look at one unit. For each missing symbol, list unresolved cells that still contain it. If the list has one cell, place the symbol there. That cell may still show several local candidates before the step. Confusing the two singles is a common mistake: extra candidates on the cell do not disqualify a hidden single.
Pointing candidates
Inside a region, collect every remaining location of a symbol. If they all lie in one row (or one column), that symbol cannot appear in the rest of the row (or column) outside the region. The step is reported only when at least one elimination exists. Empty pointing is not progress. Rectangular 2×3 regions on 6×6 grids use the same geometry functions as 3×3 boxes.
Claiming candidates
Inside a row or column, if every remaining location of a symbol lies in a single region, eliminate that symbol from the rest of the region. Again, at least one elimination is required. Pointing and claiming are opposite directions of the same confinement idea.
Naked pairs
Two unresolved cells in the same unit share exactly the same two candidates. Those two symbols can be removed from other unresolved cells in the unit. The pair does not apply across unrelated units.
Hidden pairs
Two missing symbols in a unit appear only in the same two cells. Other candidates leave those two cells. Hidden pairs are classified Hard on this site because they are easy to miss even when singles are gone.
Triples
A naked triple is three unresolved cells whose candidate union contains exactly three symbols; those symbols leave the other cells of the unit. A hidden triple is three symbols confined to three cells; unrelated candidates leave those three cells. Combinations are bounded so the search cannot loop forever.
X-Wing
For a symbol, find two rows in which the symbol can appear in exactly the same two columns. Eliminate it from other rows in those columns. The column-oriented version swaps the roles of rows and columns. A reported X-Wing must eliminate something. The pattern is skipped on 4×4 and 6×6.
Swordfish
Three base rows each contain two or three candidate positions for a symbol, and together they occupy exactly three cover columns. Eliminate the symbol from other rows in those columns. The column-oriented form is implemented too. Swordfish is an Expert technique here.
XY-Wing
Find a pivot cell with candidates X and Y. Find two wings visible to the pivot: one with X and Z, one with Y and Z, all distinct. Eliminate Z from cells that see both wings. If Z is not actually present in such a cell, the pattern is not reported.
When no supported technique is found
The analyzer displays: “No supported logical step was found in the current position.” It offers reviewing entries, recalculating candidates, trying another supported technique, or revealing one verified solution value. That last option is labeled a solution reveal, not a deduction. Backtracking can still finish the grid; it is a search, not a claimed human step.
Worked checks
Example 1: the 4×4 naked-single fixture with three given digits in row 1 places 4 in the remaining cell. Example 2: a constructed candidate map with a naked pair {1,2} in two cells removes 1 from a third cell in the same unit. Example 3: a row-oriented X-Wing candidate map on 9×9 eliminates 5 from extra cells in the two cover columns. Automated tests verify those deductions.
Questions
- Does a hint peek at the answer?
- Ordinary hints do not. Only a labeled reveal uses the stored unique solution.
- Why did Expert appear on a grid with many clues?
- Clue count is not the classifier. The highest required technique is.
- Can I skip to search?
- Yes, in the solver. It will not be described as a logical hint.
Related: beginner play, solvers and generators.
Practice on a live grid rather than memorizing technique names. Load a Medium puzzle, fill singles until they stop, then ask for a hint. If the analyzer names pointing, verify that every remaining 5 in a region really sits on one line before you accept the elimination. If it names a naked pair, confirm the two cells share exactly the same two candidates and that at least one extra cell in the unit still holds one of those symbols. If the analyzer stalls, do not invent a story; either recast candidates or use the solver’s search and keep that distinction in your notes. That habit matters more than racing the timer.