How we make sure every logic puzzle has one answer
CROSSINGS, MINI-GRID and TARGET are made by our own software. Here is how each puzzle is checked to be fair before anyone sees it.
Nothing spoils a logic puzzle like the feeling, halfway through, that you have to guess. A good puzzle can always be finished by reasoning. A bad one leaves you with two cells that could go either way and nothing to choose between them.
Three of our games, CROSSINGS, MINI-GRID and TARGET, are made by software we wrote for the site. This post explains what that software checks before a puzzle is allowed onto the calendar.
The same puzzle for everyone, every time
Each puzzle starts from a seed: the game's name and the date. The generator turns that seed into a stream of numbers that looks random but is completely repeatable. Give it the same seed and it builds exactly the same puzzle.
That matters for two reasons. It means everyone gets the same puzzle without the site having to send anything special to anyone. And it means that if we ever need to rebuild a puzzle, say to check something a player reported, we get the identical grid back.
Puzzles are built weeks ahead, checked, stored and marked approved. Nothing is generated at midnight; the new day simply appears when the date changes in London.
Rule one: exactly one solution
For CROSSINGS and MINI-GRID, the first check is the simplest to state and the hardest to do: the puzzle must have exactly one solution.
A computer can check this by brute force. It tries to complete the grid, and every time it reaches a choice it explores both branches. If it finds a second complete solution, the puzzle is thrown away and the generator tries again with the next seed.
For MINI-GRID that means a solver that fills six-by-six grids, respecting every row, column and box, plus the cage totals on Fridays and Saturdays and the shared box on Sundays. For CROSSINGS it means a solver that builds bridges, keeps every island to its number, stops bridges crossing, and checks that all the islands end up in one connected group. That last rule is the trickiest to check efficiently, and it is also where many otherwise valid grids fail.
Rule two: no guessing needed
A puzzle can have exactly one solution and still be unfair. If the only way to find that solution is to try something and see whether it breaks, the player is being asked to guess.
So there is a second, stricter check. A different solver works through the puzzle the way a person would, using only a fixed list of techniques: the steps a careful solver can justify. In MINI-GRID these range from "this row has one gap, so it is forced" up to reasoning about pairs of candidates. In CROSSINGS they range from "this island has only one neighbour" up to "this group of islands has only one way to reach the rest".
If the human-style solver cannot finish the grid with those techniques, the puzzle is rejected, even though it technically has one answer.
Rule three: the right difficulty for the day
The same technique list also gives each puzzle a grade. A puzzle that falls to the simplest techniques is gentle; one that needs the advanced ones is hard.
Both logic games get harder through the week. MINI-GRID runs from plain, gentle grids on Monday to cage puzzles on Friday and Saturday and a double grid on Sunday. CROSSINGS grows from 7×7 on Monday to 9×9 from Friday, and on Sundays fog hides some of the numbers. The generator keeps building and grading until it has a puzzle whose grade suits the day.
That is also how our hints work. When you ask for one, the server runs the same human-style solver on your position and tells you the next step it would take, with the reason.
TARGET is checked the other way round
TARGET is a numbers puzzle: six numbers, four operations, and a three-digit total to hit. Here the question is not "is there only one answer?" (there are usually many) but "is there at least one?"
The generator draws six numbers and a target, then a solver searches every legal way of combining them: each number used at most once, every step a positive whole number. If no combination hits the target exactly, the draw is discarded. Every TARGET puzzle you see has at least one exact solution, and the solver records the shortest one it found, which is what appears in the archive after the day is over.
The checks run again before a puzzle goes live
Generating a puzzle is one step; trusting it is another. Every stored puzzle passes through a separate validator before it is approved, which re-runs the checks on the saved copy rather than on the generator's working version. Each evening an automatic check also confirms that tomorrow's puzzle exists and is approved for every game, and alerts us if anything is missing.
Why it matters
None of this is visible when you play, and that is the point. When a CROSSINGS grid feels stuck, you can trust that there is a logical next step somewhere on the board. When a TARGET total looks impossible, you know it is not.
If you ever think a puzzle broke one of these rules, tell us. We check every report.