Skip to content
PencilGrid

How Puzzles Are Made and Verified

Published · Updated

Every PencilGrid puzzle is generated offline, proved by a separate solver to have exactly one solution, and graded by the hardest technique that solver needs. This page describes each step and where the numbers on the site come from.

The four steps

  • Generate offline. A batch script for each game builds every daily and practice puzzle from a numbered seed on a developer machine. The same seed always gives the same grid, and nothing is generated when a page is opened.

  • Prove one solution. A second solver, written independently of the generator, searches each grid for solutions and stops as soon as it finds two. A grid is kept only when it finds exactly one.

  • Grade by hardest technique. A logic solver works through the grid using its game's ladder of techniques, easiest first. The hardest rung it has to use sets the band: Easy, Medium or Hard.

  • Publish as dated files. Accepted grids are written as JSON. Dailies are one file per date, deployed with the site. Practice puzzles stay in pools off the public site and are served one at a time, three a day for each level and grid size, the same set for every visitor. The build fails if any game has fewer than 60 future dailies.

Offline generation

The generator is a separate program that runs in Node, never in a request. It has one batch script per game, and each script does the same five things: produce more candidate grids than needed from seeded random numbers, verify them, grade them, drop duplicates, and write the survivors to the site's public folder. Seeds are deterministic, so running a script twice produces byte-identical files, and each game uses its own seed range so that two games never share a random stream.

Most games build a full solution first and then remove clues. Sudoku and Sudoku X fill a grid and dig out digits until one more removal would allow a second solution. Suguru cuts the grid into regions, fills it with a search that knows only the two rules, then removes givens one at a time while its solver, held to the techniques of the level wanted, still finishes the grid. Kakuro fills a layout with digits, derives the sums, and when a quick search finds a second solution changes one digit where the two solutions differ and tries again.

The nine games added on 15 November 2026 start from the answer too. Skyscrapers and Calcudoku begin with a random Latin square: Skyscrapers takes clues away while its solver can still finish, and Calcudoku cuts the square into cages and gives each an operation its digits allow. Light Up scatters black cells, lays bulbs until every white cell is lit, numbers the black cells and then removes numbers one at a time. Tents scatters tents that never touch and gives each a tree beside it. Battleships places the fleet and reveals a cell only where its solver is stuck. Thermometers tiles the grid with straight thermometers and fills each to a random level. Hashi grows a connected chain of islands and numbers every one. Nurikabe lays islands in a sea that stays in one piece, and where its solver stalls it moves a number or lays those islands again. Galaxies grows each region as mirrored pairs of cells around its dot, so the dots follow from the cut.

The independent solver

Uniqueness is never taken on trust from the generator. Each game has a verifier that starts from the clues alone and searches for solutions by backtracking, with a cap of two: finding a second solution is enough to reject the grid, so the search can stop early. Sudoku X runs a diagonal-aware search and then re-checks the whole batch by brute force. Kakuro requires more: the stored solution must equal the one its technique ladder reaches, and a from-scratch verifier must agree that it is the only one.

Every search has a work limit, and reaching it counts as a failure, never as proof. Light Up and Calcudoku stop a search after 200,000 steps, Galaxies after 50,000 and Tents after two million. A grid whose search was cut short is dropped like one with two solutions, and the batch moves on to the next seed.

The practical result is the sentence on every game page: there is exactly one solution, and it can be reached by logic. A grid that the ladder cannot finish is rejected at this stage, because finishing it would need a guess.

Grading by hardest technique

Where a game has a technique ladder, the band is the hardest rung the solver had to use. Kakuro's ladder has seven steps: Unique Sum, Sum Combinations, Naked Single and Required Digit make a puzzle Easy; Combination Check or Sum Difference make it Medium; a Contradiction test makes it Hard. Sudoku runs from Naked Single through pairs and pointing pairs to X-Wing, Swordfish and XY-Wing. Star Battle, Shikaku, Slitherlink and Futoshiki each have their own ladder, described on their guides, and a hint on any of these games names the rung it used.

A solved 6 by 6 Kakuro from 3 August 2026, graded Easy because the hardest step its solver needed was a Naked SingleThe daily Kakuro from 3 August 2026 with every white cell filled. Clue cells are grey with their sums. The ladder solved it with Unique Sum, Sum Combinations and Naked Single alone, so it is graded Easy.14↓3↓3→15↓2130↓24→962716↓7→6117→4↓8924→53977→16
The Kakuro daily of 3 August 2026: 33 ladder steps, none harder than a Naked Single, so Easy.

Suguru has had a ladder of six techniques since the daily of 23 November 2026: the first two make a grid Easy, Shared Neighbors or a pair makes it Medium, and a tested candidate makes it Hard. Its 114 earlier dailies were sorted by how long a search ran once the first two techniques stalled, and they keep the labels they were published with. Binairo changed on the same day. A grid is still built to 42, 32 or 22 givens on the 10×10, but it is now published only when the hardest of its five checks matches the level: counting for Easy, exclusion or distinct lines for Medium, a tested digit for Hard. Sudoku X follows the same pattern from that day: a grid is dug to 32, 26 or 22 givens (one either way is accepted) and kept only when the hardest of its eleven techniques fits the level, singles for Easy, an elimination for Medium, an X-Wing or an XY-Wing for Hard. Killer Sudoku was the last to change, also on 23 November: its cages are still drawn from a size profile per level, and a grid is now kept only when a solver with eleven techniques agrees. Cage sets, singles and the 45 rule on one row, column or box make it Easy, a cage elimination or a Sudoku pair makes it Medium, and a sum over several rows or boxes makes it Hard. Nonogram is the one game whose band is not a technique. Its bands follow grid size, from 5×5 to 20×20, and each picture's hardest line technique is recorded beside the size.

The nine games added on 15 November 2026 have been graded by technique since their first daily. The table shows where each ladder draws its lines: a grid is Easy when nothing past the step in the Easy column was needed, Medium when one of the Medium steps was, and Hard when one of the Hard steps was. A Contradiction step supposes one mark and follows the simpler steps until a rule breaks. The number of them a Hard grid may need is capped: three in Light Up and Nurikabe, four in Skyscrapers, six in Thermometers.

Technique ladders of the nine games added in November 2026
GameStepsEasy ends atMedium addsHard adds
Light Up6Only Light SourceClue Corner, Stranded CellContradiction
Nurikabe9Unreachable CellIsland Shapes, Sea BottleneckContradiction
Skyscrapers10Height LimitVisibility Count, Naked Pair, Hidden PairContradiction
Thermometers9Count ForcedReach Limit, Minimum FillContradiction
Hashi9Nearly Full IslandIsolation, Only Way OutBridge Probe, Network Probe
Calcudoku9Line TotalCage EliminationsNaked Pair, Hidden Pair, Pointing Cage, X-Wing
Galaxies4Mirror CheckSingle ReachBridge, Contradiction
Tents12Tree TakenLine Squeeze, Shared Neighbor, Line Shadow, Tree LineContradiction
Battleships8Forced LineShip Limit, Ship Must Grow, Ship PlacementContradiction

Easy is made fuller on two games after grading. An Easy Sudoku is carved to between 22 and 28 givens like any other grid, and digits from its own solution are then put back until it starts with 36. It stays a singles-only grid with the same one solution. An Easy Binairo gets starting cells added until the pair, gap and count checks finish it, which takes the 10×10 from 42 givens to between 42 and 46. Both apply to the dailies from 23 November 2026 and to every Easy practice grid; earlier dailies stay as they were published.

An 8 by 8 Suguru from 5 August 2026 where the two basic rules fill 22 cells and then stop, with one cell outlined and two candidates leftThe daily Suguru from 5 August 2026 with 16 givens and six placed digits in the right-hand column. The Easy rules fill nothing more. Row 1, column 3 is outlined with the candidates 1 and 4. Once the 4 of the top-left region is narrowed to row 2, columns 2 and 3, the outlined cell touches both of those cells and must be 1. That Shared Neighbors step is what makes the grid Medium.21 4313351123511241232341
The Suguru daily of 5 August 2026 stalls at 22 cells on the two Easy techniques; two Shared Neighbors steps finish it, so Medium.

Daily seeds and numbering

Dailies are numbered by the calendar. The launch date, 1 August 2026, is puzzle 0, and every later date is the number of days since then: 3 August 2026 is puzzle 2 in every game. Each date's seed is derived from that number inside the game's own seed range, so the grid for a date was fixed when the batch was generated and is the same for every visitor. The date is read from your device, which is why a new puzzle appears at midnight in your own time zone. A game added after launch keeps the same count, so its first daily carries that day's number: the nine games that began on 15 November 2026 started at puzzle 106, and their archives hold nothing earlier.

Difficulty follows the weekday. Sudoku, Sudoku X and Killer Sudoku are Easy on Monday, Wednesday and Friday, Medium on Tuesday, Thursday and Saturday, and Hard on Sunday. The other games ramp through the week: Easy on Monday and Tuesday, Medium from Wednesday to Friday, Hard at the weekend. Kakuro, Futoshiki, Star Battle and Shikaku grow a size with each band, Slitherlink grows from 7×7 to 10×10 between Easy and Medium, and Suguru and Binairo keep one size all week. Nonogram has five bands and climbs from a 5×5 on Monday to a 20×20 on Sunday. The nine later games ramp the same way and each grows a size with each band, from Skyscrapers at 4×4, 5×5 and 6×6 to Tents at 8×8, 10×10 and 12×12. Each game's hub and daily page shows its table.

What this means when you solve

You never need to guess, and a hint will always have a reason to give. If you reach a dead end, a deduction has been missed rather than the puzzle being unfair, and the guides list the techniques in the order the solver tries them, so the earliest unread one is the place to look. Every claim on those guides is checked the same way: techniques come from the engine, figures from shipped puzzles, and numbers from a named source. Read more on the About page, or start with any how-to guide.

Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.

Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →

Sources

Sources last checked on 2026-11-10.