<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 刘西川</title>
    <description>The latest articles on DEV Community by 刘西川 (@_a80b26c075279295b18e9).</description>
    <link>https://dev.to/_a80b26c075279295b18e9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1594492%2F162eb411-8900-44b0-b0f3-93e10853aa77.jpg</url>
      <title>DEV Community: 刘西川</title>
      <link>https://dev.to/_a80b26c075279295b18e9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_a80b26c075279295b18e9"/>
    <language>en</language>
    <item>
      <title>Griductive vs. Sudoku: Two Different Theories of What a Logic Puzzle Is</title>
      <dc:creator>刘西川</dc:creator>
      <pubDate>Wed, 25 Mar 2026 04:58:46 +0000</pubDate>
      <link>https://dev.to/_a80b26c075279295b18e9/griductive-vs-sudoku-two-different-theories-of-what-a-logic-puzzle-is-2g3m</link>
      <guid>https://dev.to/_a80b26c075279295b18e9/griductive-vs-sudoku-two-different-theories-of-what-a-logic-puzzle-is-2g3m</guid>
      <description>&lt;p&gt;I built Griductive. People often compare it to Sudoku — and the comparison is natural. Both are daily logic puzzles. Both guarantee one unique solution. Both reward careful, methodical reasoning over guessing.&lt;/p&gt;

&lt;p&gt;But they are genuinely different kinds of puzzles, built on different design philosophies. This article is about what those differences actually are.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Sudoku Is
&lt;/h2&gt;

&lt;p&gt;Most people know Sudoku as a number puzzle. That description is misleading in an important way: &lt;strong&gt;Sudoku has nothing to do with numbers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The digits 1–9 are arbitrary symbols. You could replace them with colors, letters, or emoji and the puzzle would be mathematically identical. What Sudoku is about is &lt;strong&gt;uniqueness in groups&lt;/strong&gt;: place exactly one instance of each symbol in each row, each column, and each of the nine 3×3 boxes. Three constraint types, one elegant grid structure, and every puzzle ever made is a variation on those same three rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw078r6z9arbgvhdzxh9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw078r6z9arbgvhdzxh9j.png" alt=" " width="600" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That simplicity is a genuine strength. Sudoku was invented by American architect Howard Garns in 1979, popularized in Japan by Nikoli in 1984 under the name 数独 (&lt;em&gt;Sūdoku&lt;/em&gt;), and went global in 2004 when a New Zealand-born retired Hong Kong judge named Wayne Gould pitched his algorithmically-generated puzzles to The Times of London. The key insight Gould had — that algorithmic generation could supply newspapers with infinite fresh puzzles — is the same insight that underlies Griductive's generation pipeline.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Griductive Is
&lt;/h2&gt;

&lt;p&gt;Griductive is a daily &lt;strong&gt;deductive classification puzzle&lt;/strong&gt;. You're given a grid of characters, each of whom is either a Suspect or an Innocent. Some characters carry logical clues; some start pre-revealed. Your goal is to classify every character correctly using those clues alone.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7wskgrimayxzvvlhg0h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7wskgrimayxzvvlhg0h.png" alt=" " width="370" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The clues are natural-language logical statements. Not digits. Not visual patterns. Sentences like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;"There are exactly 3 suspects in row 2."&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Every suspect in column C is connected — they form a continuous chain."&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Row 1 has more suspects than column A."&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Julia is the only person in row 1 with exactly 1 suspect neighbor."&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"The two suspects in column C are exactly 2 cells apart."&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over 26 clue types span counting, comparison, spatial arrangement, identity, uniqueness, connectivity, and distance. Four grid sizes — 3×3 through 5×5 — offer different levels of challenge. Every puzzle is verified by a constraint solver before it reaches a player.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Core Design Difference
&lt;/h2&gt;

&lt;p&gt;Sudoku and Griductive are both constraint satisfaction problems, but they're solving different &lt;em&gt;types&lt;/em&gt; of constraints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sudoku&lt;/strong&gt; asks: &lt;em&gt;where does each value go?&lt;/em&gt; The constraints are structural and implicit — you learn them once, and they never change. Mastery means building a deep vocabulary of techniques and learning to recognize the patterns those techniques apply to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Griductive&lt;/strong&gt; asks: &lt;em&gt;what is each cell?&lt;/em&gt; The answer is binary — Suspect or Innocent. The constraints are explicit and linguistic — you read and interpret each clue individually, every puzzle. You're not building fluency with a fixed technique set; you're reasoning through a fresh set of logical relationships each time.&lt;/p&gt;

&lt;p&gt;Neither mode is superior. They engage different things. Sudoku rewards visual-spatial pattern recognition built up through practice. Griductive rewards reading and interpreting new logical statements on each puzzle.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Closer Look at Sudoku's Solving Techniques
&lt;/h2&gt;

&lt;p&gt;With both games in view, it's worth going deeper on what Sudoku mastery actually looks like — because it shapes how the two games feel different over time.&lt;/p&gt;

&lt;p&gt;Sudoku technique is hierarchical. Beginners use &lt;strong&gt;Naked Singles&lt;/strong&gt; (only one digit fits a cell) and &lt;strong&gt;Hidden Singles&lt;/strong&gt; (only one cell in a region can take a digit). Most easy puzzles yield entirely to these two techniques.&lt;/p&gt;

&lt;p&gt;The intermediate layer introduces &lt;strong&gt;Naked/Hidden Pairs and Triples&lt;/strong&gt;, &lt;strong&gt;Pointing Pairs&lt;/strong&gt;, and &lt;strong&gt;Box-Line Reduction&lt;/strong&gt; — techniques that work by constraining candidate sets across intersecting regions.&lt;/p&gt;

&lt;p&gt;The advanced layer is where Sudoku starts to feel like a different game: &lt;strong&gt;X-Wing&lt;/strong&gt;, &lt;strong&gt;Swordfish&lt;/strong&gt;, &lt;strong&gt;XY-Wing&lt;/strong&gt;, and chain-based techniques like &lt;strong&gt;Skyscraper&lt;/strong&gt; and &lt;strong&gt;Alternating Inference Chains&lt;/strong&gt;. X-Wing is a good example of what makes this level satisfying — a digit confined to exactly two cells in each of two rows, sharing columns, forces eliminations across the whole grid. It's genuinely elegant.&lt;/p&gt;

&lt;p&gt;At the extreme end sits &lt;strong&gt;bifurcation&lt;/strong&gt; — pick a candidate, assume it's true, trace the consequences, and backtrack when a contradiction appears. The Sudoku community has a genuine philosophical divide about this. One camp holds that with sufficiently advanced techniques, any valid puzzle can be resolved without bifurcation; it's just a shortcut for solvers who haven't learned the deeper chains yet. The other camp argues that exploring hypothetical branches and pruning failures is exhaustive search under a different name. I'm personally in the second camp, which influenced how I designed Griductive — but it's a contested question, not a settled one.&lt;/p&gt;

&lt;p&gt;The modern variant Sudoku world deserves mention here. Channels like Cracking the Cryptic have pushed the format into remarkable creative territory: Thermo constraints, Sandwich sums, Anti-Knight movement, Fog of War, Whisper lines — entirely new constraint types invented and layered onto the classic rules every week. The classic 9×9 and the variant Sudoku community are genuinely different experiences.&lt;/p&gt;




&lt;h2&gt;
  
  
  Griductive's Design Choices
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Verified Pure Deduction
&lt;/h3&gt;

&lt;p&gt;Every Griductive puzzle is verified — before publication — by the same constraint solver that generated it. The check confirms not just that a unique solution exists, but that the deduction engine can reach it through forward logical inference alone, without backtracking. If a puzzle can't be resolved that way, it's discarded. This is a hard guarantee built into the generation pipeline, not a quality target.&lt;/p&gt;

&lt;h3&gt;
  
  
  Evidence Analysis
&lt;/h3&gt;

&lt;p&gt;When you classify a character incorrectly, Griductive doesn't just tell you you're wrong — it shows you why. The &lt;strong&gt;Evidence Analysis&lt;/strong&gt; system assumes your incorrect guess as a hypothesis, propagates it through all relevant clues, finds the exact contradiction it produces, and walks you through the chain step by step: hypothesis in blue, clue anchors in orange, the final conflict in red.&lt;/p&gt;

&lt;p&gt;You see exactly which clue chain produced the contradiction and what the correct path of reasoning should have been. Over time, this turns every mistake into a micro-lesson.&lt;/p&gt;

&lt;p&gt;The better dedicated Sudoku apps — Sudoku Coach, Logic-Wiz, the Cracking the Cryptic apps — do offer sophisticated step-by-step hint systems that explain technique application in detail. What distinguishes Evidence Analysis is that it starts from &lt;em&gt;your specific wrong move&lt;/em&gt; and traces the contradiction it produces, rather than explaining what to do next. That's a different kind of feedback.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Logic Graph
&lt;/h3&gt;

&lt;p&gt;Pro subscribers have access to the &lt;strong&gt;Logic Graph&lt;/strong&gt; — a visualization of the full deduction structure of a puzzle as a directed acyclic graph. Each node is a character; each edge is a deductive dependency. Characters are organized by solving depth, so you can see which clues are entry points, which require long reasoning chains, and why harder puzzles are harder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Clue Variety
&lt;/h3&gt;

&lt;p&gt;Griductive's 26+ clue types mean the composition of each puzzle shapes its character: a puzzle built around spatial connectivity feels different from one centered on counting and comparison, which feels different from one relying on identity and uniqueness constraints. The difficulty scaling runs across both grid size and clue complexity simultaneously.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Daily Ritual
&lt;/h2&gt;

&lt;p&gt;Both games are designed around a daily solving habit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Daily Sudoku&lt;/strong&gt; is ubiquitous — every major news site has one, and the NYT's Sudoku section is a cultural institution. No signup, no install, playable anywhere including on paper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Griductive&lt;/strong&gt; offers four puzzles daily across four grid sizes, from the quick 3×3 Grid Lite to the demanding 5×5 Deep Dive. Puzzles are algorithmically generated with a unique daily seed, so they're fresh worldwide every day. The archive extends backward indefinitely — Pro subscribers can solve any past puzzle, with no repetition, because puzzles are generated rather than drawn from a fixed pool.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Sudoku Does Particularly Well
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Universal accessibility.&lt;/strong&gt; No language comprehension required. Playable anywhere, on paper, in any language, with nothing to install.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cultural depth.&lt;/strong&gt; Sudoku has World Championships, dedicated communities, and YouTube channels with millions of subscribers. The community infrastructure built around it over 40+ years is genuinely remarkable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technique elegance.&lt;/strong&gt; Intermediate Sudoku techniques — Naked Pairs, X-Wing, Hidden Triples — have a beautiful geometric logic. Understanding why X-Wing works is a genuine intellectual pleasure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variant Sudoku.&lt;/strong&gt; The modern variant community has pushed the format into extraordinary creative territory. Thermos, Sandwich sums, Anti-Knight, Fog of War, Whisper lines — constraint invention every week. If you think Sudoku has a fixed constraint space, you haven't explored this corner of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero friction.&lt;/strong&gt; Open any newspaper.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Makes Griductive Distinct
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Verified pure deduction.&lt;/strong&gt; Every puzzle is mathematically guaranteed to be solvable through logical inference alone. Not a goal — a hard constraint on generation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Evidence Analysis.&lt;/strong&gt; When you guess wrong, the game traces your hypothesis to the exact contradiction it produces. Every mistake becomes a lesson.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Natural-language clues.&lt;/strong&gt; You read, interpret, and reason through fresh logical statements each puzzle — a different cognitive mode from pattern recognition against a fixed technique set.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logic Graph.&lt;/strong&gt; A full visualization of each puzzle's deduction structure: entry points, dependency chains, solving depth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Four grid sizes daily.&lt;/strong&gt; A quick 3×3 warm-up or a demanding 5×5 — structurally distinct complexity at each level.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Should Play Which?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Play Sudoku if:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want a universal format with no language barrier and a massive global community&lt;/li&gt;
&lt;li&gt;You enjoy building a deep technique vocabulary and recognizing patterns fluently&lt;/li&gt;
&lt;li&gt;You play on paper, or want zero-friction access with nothing to install&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Play Griductive if:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want to reason through fresh logical statements rather than recognize familiar patterns&lt;/li&gt;
&lt;li&gt;You care that every puzzle is guaranteed to be solvable through pure deduction&lt;/li&gt;
&lt;li&gt;You want a feedback system that explains your specific mistakes from first principles&lt;/li&gt;
&lt;li&gt;You want four difficulty tracks daily and a deduction graph to study puzzle structure&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Closing Thought
&lt;/h2&gt;

&lt;p&gt;Sudoku is a masterpiece of constraint design. It deserves its status as one of the great puzzle formats, and the variant Sudoku community has shown that its creative space is nowhere near exhausted. I have genuine respect for it — the insight that algorithmic generation could scale a puzzle format to millions of daily players is one I borrowed directly.&lt;/p&gt;

&lt;p&gt;Griductive is something different: binary classification instead of symbol placement, natural-language clues instead of implicit structural rules, a feedback system built around your specific wrong move. The two games share a daily ritual and a uniqueness guarantee. Beyond that, they're doing different things.&lt;/p&gt;

&lt;p&gt;The best reason to try Griductive isn't that it fixes something broken — it's that it's a different kind of puzzle experience that some solvers will find genuinely engaging.&lt;/p&gt;

&lt;p&gt;Start with the free tier at &lt;a href="https://www.griductive.com" rel="noopener noreferrer"&gt;griductive.com&lt;/a&gt;. No download, no credit card required.&lt;/p&gt;

&lt;p&gt;Happy solving.&lt;/p&gt;

&lt;p&gt;— Shawn, builder of Griductive&lt;/p&gt;

</description>
      <category>sudoku</category>
      <category>puzzle</category>
      <category>logicapps</category>
    </item>
    <item>
      <title>What is Griductive and how the puzzles are made</title>
      <dc:creator>刘西川</dc:creator>
      <pubDate>Mon, 23 Mar 2026 05:31:59 +0000</pubDate>
      <link>https://dev.to/_a80b26c075279295b18e9/what-is-griductive-and-how-the-puzzles-are-made-24f5</link>
      <guid>https://dev.to/_a80b26c075279295b18e9/what-is-griductive-and-how-the-puzzles-are-made-24f5</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqv70eaz7araco1ja46h1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqv70eaz7araco1ja46h1.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Griductive is a daily deductive logic puzzle game where you play as a detective and determine who is &lt;strong&gt;innocent&lt;/strong&gt; and who is a &lt;strong&gt;suspect&lt;/strong&gt; using pure logic. Some people on the grid may or may not carry a clue — all of them remain logically consistent with it and everyone speaks the truth!&lt;/p&gt;

&lt;p&gt;No guessing. No luck. Just pure deduction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvt27hvlqjk4biv25abtw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvt27hvlqjk4biv25abtw.png" alt=" " width="800" height="1731"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  how the puzzles are made
&lt;/h1&gt;

&lt;p&gt;Every Griductive puzzle makes a bold promise: &lt;strong&gt;you will never need to guess.&lt;/strong&gt; Every cell can be determined through logic alone, and every puzzle has exactly one correct answer.&lt;/p&gt;

&lt;p&gt;That's not a design goal — it's a mathematical guarantee, enforced by the same class of solver used in operations research and chip verification. This post explains how.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Uniqueness Matters
&lt;/h2&gt;

&lt;p&gt;If a puzzle has two valid solutions, there must be at least one cell where both Suspect and Innocent satisfy all the clues. At that cell, no amount of reasoning can tell you which is correct — you'd have to guess. Guessing violates the core contract of a deduction puzzle.&lt;/p&gt;

&lt;p&gt;So the generator doesn't just produce puzzles that &lt;em&gt;happen&lt;/em&gt; to have one solution. It &lt;strong&gt;proves&lt;/strong&gt; that no second solution exists before a puzzle is ever published.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Five-Phase Pipeline
&lt;/h2&gt;

&lt;p&gt;Each Griductive puzzle is built through a five-phase pipeline. Here's what happens at each stage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 1: Generate a Random Solution
&lt;/h3&gt;

&lt;p&gt;The generator starts by creating a valid solution grid — a random assignment of Suspect and Innocent to every cell. This is the ground truth that the player will eventually deduce.&lt;/p&gt;

&lt;p&gt;At this point, no clues exist yet. The board is just a random configuration that satisfies basic structural constraints (grid dimensions, suspect count within valid ranges).&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 2: Build the Clue Pool
&lt;/h3&gt;

&lt;p&gt;Next, the generator exhaustively enumerates every possible clue that is &lt;strong&gt;true&lt;/strong&gt; on the solution board.&lt;/p&gt;

&lt;p&gt;Griductive has over 26 distinct clue types — counting, comparison, spatial, existential, uniqueness, connectivity, and more. For each type, the generator tests every valid parameterization against the board. A 4×4 grid can produce thousands of candidate clues. Only clues that evaluate to &lt;code&gt;true&lt;/code&gt; on the solution are kept.&lt;/p&gt;

&lt;p&gt;This is the raw material the generator works with: a massive pool of true statements, most of which are redundant.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 3: Select a Minimal Clue Set (the Hard Part)
&lt;/h3&gt;

&lt;p&gt;This is where the real work happens. The generator needs to choose a small subset of clues from the pool such that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The clues are sufficient&lt;/strong&gt; — together, they constrain the solution space to exactly one valid board.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No clue is redundant&lt;/strong&gt; — removing any single clue would allow multiple solutions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The generator uses a &lt;strong&gt;greedy constraint satisfaction&lt;/strong&gt; approach:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start with no clues selected. The solution space is wide open — many boards could be valid.&lt;/li&gt;
&lt;li&gt;Score every candidate clue by how much it &lt;strong&gt;narrows the solution space&lt;/strong&gt;. A clue that eliminates 80% of remaining possibilities scores higher than one that eliminates 10%.&lt;/li&gt;
&lt;li&gt;Select the highest-scoring clue and add it to the set.&lt;/li&gt;
&lt;li&gt;Re-solve the constraint model with the updated clue set.&lt;/li&gt;
&lt;li&gt;Repeat until the solver confirms that only one solution remains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prune&lt;/strong&gt;: walk through the final set and remove any clue that isn't necessary for uniqueness. This keeps the puzzle clean and avoids giving the player free information.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The result is a tight, fair clue set — enough to solve the puzzle completely, with no wasted clues.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 4: Score Difficulty
&lt;/h3&gt;

&lt;p&gt;With the clue set locked in, the generator scores the puzzle's difficulty on a 0–100 scale. Four factors contribute:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Simple clue ratio (35%)&lt;/strong&gt; — How many clues are direct counting or identity statements. More simple clues means an easier puzzle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complex clue ratio (30%)&lt;/strong&gt; — How many clues require multi-step or spatial reasoning. These demand deeper deduction chains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Information scarcity (20%)&lt;/strong&gt; — How few clues are given relative to grid size. Fewer clues means less to work with.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grid scale (15%)&lt;/strong&gt; — Larger grids are inherently harder to track. A 5×5 puzzle has nearly three times the cells of a 3×3.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each clue type also has an intrinsic complexity rating based on the reasoning it demands. A clue like "Julia is a suspect" is about as simple as it gets. A clue like "Julia is the only person in row 3 with exactly 1 suspect neighbor" requires cross-referencing multiple cells and is scored much higher.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 5: Generate Hints and Format Output
&lt;/h3&gt;

&lt;p&gt;Finally, the generator builds the hint sequence — a recommended solving order that guides stuck players through the puzzle one logical step at a time. Hints are ordered by &lt;strong&gt;dependency depth&lt;/strong&gt;: cells that can be deduced immediately come first, and cells that require long chains of prior deductions come last.&lt;/p&gt;

&lt;p&gt;The final puzzle is packaged with all the data the game needs: metadata, clue set, hint sequence, and difficulty score.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Solver: How Uniqueness Is Proven
&lt;/h2&gt;

&lt;p&gt;At the heart of the pipeline is &lt;a href="https://developers.google.com/optimization/cp/cp_solver" rel="noopener noreferrer"&gt;Google OR-Tools CP-SAT&lt;/a&gt; — a constraint programming solver that combines constraint propagation, integer programming, and SAT solving.&lt;/p&gt;

&lt;h3&gt;
  
  
  How a puzzle becomes a math problem
&lt;/h3&gt;

&lt;p&gt;Each cell on the grid is modeled as a &lt;strong&gt;boolean variable&lt;/strong&gt;: Suspect (1) or Innocent (0). Each clue becomes one or more mathematical constraints over those variables.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"There are exactly 2 suspects in row 3"&lt;/strong&gt; becomes: &lt;code&gt;cell[3,0] + cell[3,1] + cell[3,2] + cell[3,3] = 2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"All suspects in column A are connected"&lt;/strong&gt; becomes: a connectivity constraint ensuring that suspect cells in column A form a contiguous chain with no gaps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Row 1 has more suspects than column B"&lt;/strong&gt; becomes: &lt;code&gt;sum(row_1) &amp;gt; sum(col_B)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How uniqueness is verified
&lt;/h3&gt;

&lt;p&gt;After assembling the clue set, the generator asks CP-SAT a precise question: &lt;strong&gt;"Given these constraints, does more than one valid assignment exist?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CP-SAT doesn't just find &lt;em&gt;a&lt;/em&gt; solution — it can enumerate &lt;em&gt;all&lt;/em&gt; solutions. If the solver finds exactly one, the puzzle is valid. If it finds two or more, the generator goes back to Phase 3 and adds another clue.&lt;/p&gt;

&lt;p&gt;This is a formal proof, not a heuristic. CP-SAT exhaustively explores the entire solution space. If it says there's one solution, there is exactly one — period.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why not just brute-force it?
&lt;/h3&gt;

&lt;p&gt;A 5×5 grid has 25 cells, each with 2 possible values. That's 2²⁵ = 33 million possible boards. Brute-forcing all of them is slow and doesn't scale.&lt;/p&gt;

&lt;p&gt;CP-SAT is dramatically faster because of &lt;strong&gt;constraint propagation&lt;/strong&gt;: when a clue says "row 3 has exactly 2 suspects," the solver immediately reduces the search space for every cell in row 3 without checking each combination individually. Complex clues compound this effect. In practice, CP-SAT proves uniqueness for a 5×5 puzzle in milliseconds.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Could Go Wrong (and How We Prevent It)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  "What if a clue is ambiguous?"
&lt;/h3&gt;

&lt;p&gt;Every clue type has a formal mathematical definition. "Neighbors" always means the up-to-8 surrounding cells including diagonals. "Connected" always means a contiguous chain of adjacent cells. "Between" always means cells in the same row or column, excluding endpoints.&lt;/p&gt;

&lt;p&gt;These definitions are built directly into the constraint model — there's no natural language interpretation step where ambiguity could creep in. The in-game &lt;strong&gt;Clarifying Details&lt;/strong&gt; reference shows players exactly what each spatial keyword means.&lt;/p&gt;

&lt;h3&gt;
  
  
  "What if the solver has a bug?"
&lt;/h3&gt;

&lt;p&gt;The CP-SAT solver is a well-tested, widely-used tool maintained by Google's optimization team. But we don't rely on trust alone. Every generated puzzle is independently verified:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An &lt;strong&gt;automated solver&lt;/strong&gt; attempts to solve every puzzle step-by-step, simulating a human player. If it can't reach a complete solution through logical deduction alone, the puzzle is rejected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hint soundness checks&lt;/strong&gt; verify that each hint in the sequence is logically valid — that the hinted cell is genuinely deducible from the clues and previously revealed cells, not from hidden information.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  "What if clue generation misses edge cases?"
&lt;/h3&gt;

&lt;p&gt;Each clue type has a formal evaluation function that is tested against known puzzle configurations. The clue pool generation phase only includes clues that evaluate to true on the actual solution — a clue that's false on the solution can never appear in the puzzle.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;When you open a Griductive puzzle, here's what has already happened:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A random solution was generated.&lt;/li&gt;
&lt;li&gt;Thousands of candidate clues were evaluated against it.&lt;/li&gt;
&lt;li&gt;A minimal, non-redundant subset was selected.&lt;/li&gt;
&lt;li&gt;A formal solver &lt;strong&gt;proved&lt;/strong&gt; that exactly one solution satisfies those clues.&lt;/li&gt;
&lt;li&gt;An automated solver independently verified that the puzzle is solvable through pure deduction.&lt;/li&gt;
&lt;li&gt;A difficulty score was computed and a hint sequence was generated.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every puzzle, every day, across all four grid sizes. No exceptions.&lt;/p&gt;

&lt;p&gt;The promise holds: if you're stuck, there's a clue you haven't fully used yet. If you think two answers are possible, re-read the clues — the logic will resolve it. And if you want proof, the Logic Graph will show you the exact deduction chain from clues to solution.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next: Clues That Tell a Story
&lt;/h2&gt;

&lt;p&gt;Right now, Griductive's clues read like precise logical statements — clear and unambiguous, but admittedly a bit clinical. "There are exactly 2 suspects in row 3" gets the job done, but it doesn't exactly make you feel like a detective on a case.&lt;/p&gt;

&lt;p&gt;We're actively working on changing that. The goal is to diversify how clues are expressed — weaving in thematic flavor while preserving the same underlying logical precision. Imagine clues tied to holiday events, or framed as witness testimony from a specific crime scene. Instead of a sterile formula, you'd read something that feels like an actual piece of evidence from an investigation.&lt;/p&gt;

&lt;p&gt;The key constraint hasn't changed: every clue must remain consistent, unambiguous, and formally verifiable. The solver doesn't care whether a clue sounds like a math textbook or a noir detective novel — it only cares about the logical content. That separation is what makes richer expression possible without compromising correctness.&lt;/p&gt;

&lt;p&gt;Same guarantees. Same rigor. But puzzles that feel less like equations and more like cases worth cracking.&lt;/p&gt;




&lt;p&gt;No guessing. No luck. Mathematically guaranteed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.griductive.com" rel="noopener noreferrer"&gt;Play today's puzzle →&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
