Why our Skyscrapers puzzles cap at 5 by 5
The Once Books team · 30 October 2026 · 6 min read
Our sudoku generator goes up to 9 by 9. Our Skyscrapers generator stops at 5 by 5. That isn't a gap we forgot to fill; it's a decision the solver forced, and it's a good window into why some puzzles scale and others don't.
Two different guarantees
Most of our logic puzzles promise more than a single solution. Binairo and Futoshiki are proved solvable by pure logic, no guessing. Skyscrapers is not. For it, the guarantee we hold is uniqueness: every grid has exactly one solution, proved by a solver that counts answers and stops at the second. It's the same bar a hidden-picture nonogram holds, and we say so rather than imply a no-guessing promise we don't keep.
The reason is the visibility rule. "Three buildings are visible from the left" is a constraint over a whole line at once, and it's hard to turn into a tight per-cell deduction. Our narrowing trims the heights a clue makes impossible, for example a line whose edge clue is 1 must start with the tallest building, but it can't always finish a line the way the Latin rule can finish a sudoku line. It's sound, meaning it never removes a height that was actually legal, but it's incomplete, so the search has to branch to close the gap. The exact visible counts are then checked whole on the finished grid.
Where the cost comes from
Branching is what makes grid size expensive. On a 4 by 4 or 5 by 5 the search is shallow and uniqueness falls out in well under a millisecond. On a 6 by 6 with few clues, the weak visibility narrowing leaves more undecided cells, the solver branches deeper, and proving there's no second answer runs into seconds per puzzle. A book generates hundreds of grids in a background worker, so seconds each is the difference between a book that builds and one that times out. A stronger visibility solver would push the ceiling up, and until we write one, 5 by 5 is the honest cap.
The top grades don't grow the grid, then; they carve away clues. A 5 by 5 with the minimum edge clues that still force a unique answer is a much harder solve than a fully-clued one, so the difficulty climbs by subtraction.
One more wrinkle: clues don't always pin the grid
There's a subtlety that the generator has to handle. A full set of edge clues does not always identify a single Latin square: two different height arrangements can present the exact same visible count from every edge. So we can't just fill a grid, read its clues, and assume the puzzle is unique. We draw the hidden grid, compute its clues, and re-roll the grid from a stepped seed, up to 80 times, until we find one whose full clue set forces a single answer. Only then do we start carving clues away.
That re-roll loop is cheap at 5 by 5 and would be another drag at 6 by 6, which is the same ceiling showing up from a different direction.
The shared part
Everything except the visibility rule is the constraint core the whole Latin-grid family shares: the search, the Latin-rule narrowing, the count-to-two uniqueness proof. Skyscrapers is that core with one extra, deliberately-weak narrowing bolted on. The write-up of the core itself is in how we prove a Binairo has one solution.
To see a grid come out of this code, the free Skyscrapers generator runs it in your browser with the solution. For a graded book, the KDP Skyscrapers maker runs it in a worker, and how to make and sell Skyscrapers books on KDP covers the rest.
Try the tool
Free, in your browser, no sign-up. Make one, then build the whole book in the studio.
Questions parents ask
- Why do Skyscrapers puzzles use small grids?
- Because proving a single solution gets expensive fast. The visibility rule is hard to narrow tightly, so the solver has to branch more on a 6 by 6, and proving uniqueness on a sparsely clued one runs into seconds. 5 by 5 stays fast.
- Is a Skyscrapers puzzle always solvable without guessing?
- We don't promise that, unlike our Binairo and Futoshiki puzzles. For Skyscrapers, the guarantee is uniqueness: exactly one solution, proved by a backtracking solver, the same bar a hidden-picture puzzle holds.
- How does a Skyscrapers solver work?
- It interleaves the Latin rule with a visibility narrowing that trims heights a clue makes impossible, then verifies the exact visible counts on a finished grid. The narrowing is deliberately sound but incomplete, so the search finishes the job.
Related reading
How a crossword generator fills a grid
Our crossword maker doesn't fill a black-square skeleton from a dictionary. It lays your words onto an open grid so each one crosses another. Here is how.
Why our Kakuro grids stop at 7 by 7
Our Kakuro generator builds a grid, reads off the sums, and keeps it only if it proves unique. Past 7 by 7 a random grid is almost never unique, so that's the cap.
How we check a Kakurasu has one solution
Kakurasu is generated the lazy way: shade a random grid, read off the totals, and keep it only if the solver proves it unique. Why that works, and the pruning.
Keep reading
Answers
One sharply-scoped question per page, cost, safety, timing, printing, answered in a couple of sentences before the detail.
Glossary
Plain definitions of the vocabulary: the Character Sheet, the Consistency Engine, style profiles, drift.
Help centre
Task-shaped instructions for making, printing and sharing a book once you have started one.