Ouleiya
Home › Guides › How We Make Sure Every Puzzle Level Is Solvable

How We Make Sure Every Puzzle Level Is Solvable

By the Ouleiya team · September 27, 2026

Randomly generated puzzles are easy to make and easy to get wrong. A generator that deals an impossible sort level one time in fifty sounds fine on paper, until you’re the one restarting it for the tenth time and wondering whether it can be beaten at all.

Color Pour level 7 with seven tubes in a row: the middle tube is lifted with yellow on top, beside a tube holding yellow.
Level 7 after 10 moves: the lifted tube’s yellow layer can pour onto the half-full yellow tube.

So every game on Ouleiya follows one rule: if we generate a level, we prove it can be solved before you see it. Here’s how that works, and why a level being solvable doesn’t make it worth playing.

Building backwards

Some puzzles can be made by starting from the solved state and scrambling it with moves that can always be reversed. If every scramble step has an exact undo, the player can always walk back, so the level is solvable by construction.

A lot of sliding-tile puzzles are made this way. It’s cheap and it never fails. The catch is that reversible scrambles tend to produce levels that feel random rather than designed. The mess is fair. It just isn’t interesting.

Generating freely and checking with a solver

The other way is to generate a level however you like (random shuffles, hand-written templates, some mix) and give it to a program that searches for a solution. Solution found, the level ships. None found, it’s thrown out and another one is generated.

For sorting games like Color Pour and Bolt Sort, that’s a standard graph search. A state is the contents of every tube or bolt. A move is “pour or move the top of A onto B.” The goal is every container holding one color. The number of states grows fast, so the solver relies on a few tricks:

Sudoku has a stricter requirement: a proper puzzle has exactly one solution. Our generator removes clues one at a time, and after each removal a solver counts solutions, stopping as soon as it finds a second. If a removal would allow two answers, the clue goes back.

Pixel Logic pictures go through a line solver, which only makes the deductions a person could make looking at one row or column at a time. If the line solver can’t finish a picture, a player would have to guess, so the picture gets edited or dropped.

Mine Finder goes a step past the classic game. By default, a solver plays each board from your first click before you see it, and the board is used only if it can be cleared without a single guess.

Solvable, and then what

A level can be provably fair and still be bad. It can be boring, one obvious move after another. Or it can be miserable, a single narrow path through a hundred dead ends.

In Screw Creek, our mobile screw puzzle, we measure difficulty with a second player that is imperfect on purpose. It doesn’t search everything. It plays more like a person: makes reasonable-looking moves, sometimes picks the wrong one, gives up after a while. Run it many times on a candidate level and record how often it wins, and that pass rate works well as a difficulty dial:

Imperfect-player pass rate What it feels like Where we use it
85–100% Relaxing, almost a victory lap Early levels, levels right after a hard one
50–85% Needs some thought Most levels
10–35% A real wall, needs planning or a helper Occasional “boss” levels

Levels are arranged in a sawtooth: a few easier ones, a climb, then a hard one, so the difficulty isn’t a flat line.

The browser games use simpler dials. Color Pour adds a color every few levels. Bolt Sort alternates roomy and tight layouts. Sudoku grades each puzzle by the hardest technique a logic solver needs: singles for Easy and Medium (Medium just gives you fewer clues), pairs and pointing for Hard, X-wings and similar patterns for almost every Expert puzzle.

What the helpers are for

Undo, an extra empty tube and hints aren’t there to rescue impossible levels, since there aren’t any. They cut the time between “I made a mistake” and “I’m playing again.” A limited undo makes it cheaper to try something. An extra container turns a boss level from a wall into a hard climb. They stay limited so that planning still counts.

Being stuck

On our levels, being stuck always means there’s a way through that you haven’t found yet. That’s a different feeling from wondering whether the game is broken.

If you find one that really does seem impossible, send the game name and level number through our contact page. We’ll run it through the solver ourselves.

Play the games from this guide