<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze" -->

---
title: Sudoku's Hidden Rule | daily.dev
description: Valid sudoku puzzles have exactly one solution, and the author uses that unstated rule to solve some grids. A 'deadly pattern' would allow two solutions, so it...
canonical: https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Sudoku's Hidden Rule | daily.dev
og:description: Valid sudoku puzzles have exactly one solution, and the author uses that unstated rule to solve some grids. A 'deadly pattern' would allow two solutions, so it...
og:url: https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze
og:image: https://api.daily.dev/og/posts/i2wnE7xzE.png
og:image:alt: Sudoku's Hidden Rule
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sudoku's Hidden Rule

**[Hacker News](https://daily.dev/sources/hn)** · 4 min read · 0 upvotes · 0 comments

## Summary

Valid sudoku puzzles have exactly one solution, and the author uses that unstated rule to solve some grids. A 'deadly pattern' would allow two solutions, so it can never appear in a valid puzzle. In a unique rectangle, four cells holding only 2 or 3 would be deadly, so an extra candidate such as a 1 in one cell must be used. A Bivalue Universal Grave, where every open cell has two options, is also deadly and never appears in a valid puzzle. The author suggests the iOS app ':) Sudoku +' on the 'Annoying' or 'Devious' settings to see these techniques.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cyrusjavan.com/posts/solving-with-uniqueness>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 108 comments across hackernews (as of 2026-11-30).

**TL;DR:** Many found the premise unsurprising, saying uniqueness-based deduction is a well-known standard technique, while a vocal subset explained why they deliberately avoid relying on it for aesthetic or epistemic reasons (it feels circular, inelegant, or risky on flawed puzzles). The discussion wandered widely into proof-by-contradiction philosophy, Simon Tatham's puzzles, chess, and other puzzle genres with similar uniqueness quirks.

**Sentiment:** 20% positive · 55% mixed · 25% skeptical

**The case for**

- Some find uniqueness-based deduction a legitimate and satisfying shortcut, no different in kind from other advanced solving techniques.
- It can be analogized productively to proof by contrapositive/contradiction and to similar 'assume uniqueness' tricks in math and chess puzzles.

**The pushback**

- Many feel using uniqueness is circular or 'unearned' since you're assuming the very thing (a single solution) you're supposed to be proving.
- It's risky on poorly constructed or buggy puzzles, since relying on uniqueness can lead you to 'skip' and wrongly accept a solution when the puzzle actually has multiple.
- Several commenters say it feels inelegant, anticlimactic, or like cheating compared to structural deductions like swordfish or Y-wing.
- Real-world printed/digital sudokus sometimes do have multiple solutions, undermining the assumption in practice.

**By community**

- hackernews (mixed): Discussion splits between people who see uniqueness deduction as obvious/standard and others who deliberately avoid it on philosophical or risk-based grounds, with long tangential debates on logic and other puzzle genres.

**Hottest debate:** Whether relying on the uniqueness assumption to deduce cells is legitimate logical deduction or a kind of circular/unearned shortcut.

**Open questions**

- Is it ever truly impossible to solve a well-constructed sudoku without resorting to guess-and-check or uniqueness assumptions?
- Can a sudoku be constructed with multiple solutions where using BUG-style reasoning would cause a solver to get stuck rather than silently pick a wrong solution?

**Highlights**

> I mentioned this in another comment but this is why I was so surprised that their own Classic Sudoku app includes a puzzle which is designed to use uniqueness as part of the solve. I really cannot explain it logically, but unlike every other obscure technique uniqueness just feels wrong. I think it might have to do with wanting the puzzle to contain logic which clearly shows its one unique solution without having to trust it to have one? It's almost like a magic trick which requires you to understand the trick or you won't be fooled. It feels backwards.
> — [Agentlien on hackernews](https://news.ycombinator.com/item?id=50696216)

> Uniqueness is really not in the same category as guess and check. Uniqueness uses a meta fact about the way (most) puzzles are published that isn't in the rules. Guess and check uses the rules as written, just in a way that's considered inelegant, and there's certainly a gray area around what classifies as a bifurcation vs. a deduction.
> — [codeflo on hackernews · 1 comments](https://news.ycombinator.com/item?id=50697428)

> So you don't need uniqueness. The reason I don't like it is other deduction techniques are 'resistant to broken puzzles', you won't ever accidentally 'solve' an incorrect puzzle using them (I'm assuming you are deducing here, not guessing). Using uniqueness if the puzzle isn't unique can get you a solution, when other solutions existed -- you should have got stuck but you 'skipped'.
> — [CJefferson on hackernews](https://news.ycombinator.com/item?id=50697645)

> And yet the Sudoko in my daily paper occasionally breaks that rule and has multiple solutions ..... while it's annoying I consider both solutions valid
> — [Taniwha on hackernews · 2 comments](https://news.ycombinator.com/item?id=50695828)

> A bit of an impractical math nerd comment, but I think uniqueness is never required to solve a puzzle, in the sense that every (solvable) sudoku puzzle can be represented as a theory of propositional logic, and propositional logic is sound and complete. This guarantees that there is a solution, starting from the initial grid, that uses nothing more than the information you have at each step and basic logical reasoning (i.e. no "meta" information like "there is exactly one solution of this puzzle"). A (probably very slow) algorithm for finding such a solution is repeated application of resolution [1], which is complete for consequence finding of literals [2]. [1] https://en.wikipedia.org/wiki/Resolution_(logic) [2] https://www2.eecs.berkeley.edu/Pubs/TechRpts/1967/7158.html
> — [bubblyworld on hackernews](https://news.ycombinator.com/item?id=50697887)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50695539) · 225 points · 108 comments

## Similar posts on daily.dev

- [KenKen with Roman numerals](https://daily.dev/posts/kenken-with-roman-numerals-ybdt1a0eh) · Arthur O'Dwyer · 0 upvotes · 0 comments
- [Tupo](https://daily.dev/posts/tupo-rvnhxznra) · Dave Rupert · 0 upvotes · 0 comments
- [From constraint models to playable puzzle games](https://daily.dev/posts/from-constraint-models-to-playable-puzzle-games-f3qpshgb8) · Lobsters · 0 upvotes · 0 comments
- [Nonograms: a practical guide with interactive examples](https://daily.dev/posts/nonograms-a-practical-guide-with-interactive-examples-8nztxbal2) · Hacker News · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Sudoku's Hidden Rule","url":"https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze"},"datePublished":"2026-11-30T06:17:52.687Z","dateModified":"2026-11-30T10:03:58.427Z","description":"Valid sudoku puzzles have exactly one solution, and the author uses that unstated rule to solve some grids. A 'deadly pattern' would allow two solutions, so it...","image":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","thumbnailUrl":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/sudoku-s-hidden-rule-i2wne7xze","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Sudoku's Hidden Rule"}]}
```

