{
  "id": 22260888,
  "title": "Generating Unique-Solution Kakuro Puzzles and Grading Them by Solving Technique",
  "url": "https://urgent.news/2026/11/27/generating-unique-solution-kakuro-puzzles-and-grading-them-by-solving",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T23:43:37.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/walleliao/generating-unique-solution-kakuro-puzzles-and-grading-them-by-solving-technique-ah8"
  },
  "original_language": "en",
  "account": "Online Kakuro puzzle generators often produce a limited selection of puzzles or fail to guarantee a unique solution, leading to potential guesswork in the later stages. When developing Kakuro Club, the goal was to create every puzzle with a mathematically unique solution, grade difficulty based on human solving techniques rather than grid size, and generate deterministic puzzle codes for consistent puzzle generation and shared links.\n\nTo achieve these objectives, the constraint solver and grading pipeline operate as follows. First, precomputing all 502 valid run combinations—each run containing k distinct digits from 1-9 summing to S—takes less than a millisecond. A lookup table maps (run_length, target_sum) to a list of 9-bit digit masks, enabling quick filtering of valid combinations during the solving process.\n\nThe uniqueness verifier proves that a generated puzzle has only one solution using backtracking with Minimum Remaining Values (MRV). If more than one solution is found, the system modifies cell values or black-cell symmetries and re-evaluates. For grading difficulty, a separate human-style solver attempts to solve each unique grid using various deduction techniques: Easy (one-way sums and single-candidate intersections), Medium (cross-run candidate elimination), Hard (subset/naked-pair eliminations), Expert (multi-run sum parity), Hard (longer elimination chains across multiple runs), and Fiendish (requiring bifurcation). The highest technique tier required to finish the puzzle determines its published grade.\n\nFinally, to ensure clean black-and-white printing, the Printable Kakuro sheet generator sets print-color-adjust: exact and renders clue diagonals as inline SVG triangles within crisp CSS grid cells, resulting in a lightweight (~39 KB HTML) puzzle generator.",
  "summary": "Most online Kakuro (Cross Sums) generators either serve a tiny static pack or generate grids without proving uniqueness—which leads to frustrating late-game guessing. While building Kakuro Club , I wanted every generated grid to satisfy three strict invariants: Mathematically unique solution (verified before a puzzle is ever served). Difficulty graded by human solving technique , not just grid…",
  "summary_source": "publisher",
  "key_points": [
    "Generates puzzles with unique solutions using constraint solver",
    "Grades difficulty based on human solving techniques, not grid size",
    "Provides deterministic puzzle codes for consistent generation"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}