The pieces are simple. The constraints do the work.

A constraint puzzle gives you a desired order but restricts how you can reach it. In a tube sorter, only the exposed top piece can move. In an unblock puzzle, a piece may travel along one axis but cannot pass through another. The player is not just arranging objects; they are arranging access to the objects that must move next.

Three limits create most of the interesting decisions. Capacity says how much a place can hold. Adjacency says which objects can affect one another. Movement rules say which states can follow the current state. Remove those limits and the goal becomes clerical sorting. Keep them tight and even a tiny board can require planning.

The important unit is therefore a position, not a single piece. The same colour on top of two tubes can offer very different possibilities because of what sits underneath and how much empty space remains. Before moving, name the next access you want to create and the access your move might destroy.

Original interactive / Breadth-first search

Sort four tubes.
Measure the shortest route.

Move one top piece at a time. Each tube holds 3. Empty tubes accept any colour; otherwise, the two touching pieces must match. Finish with three full single-colour tubes and one empty tube.

Choose a tube, then choose a destination. Only the top piece moves; a destination must be empty or show the same colour.

Keyboard: Tab to a tube and press Space or Enter to select it, then activate a destination. The solver uses only this small position; it does not inspect or modify any catalog game.

How the checker knows a route is shortest.

The demo starts with three mixed tubes and one empty tube. Each tube holds three pieces. A destination must have room, and it must either be empty or have the same colour on top. The goal is three full single-colour tubes. From the published starting position, the shortest solution is nine moves. That is a computed property of this exact model, not a difficulty rating.

Press Check shortest solution before moving, then make a few moves of your own and check again. The answer may rise or fall because the search always begins with the current tubes. You can also play the first move of the returned route and then re-check. The checker never assumes that an earlier answer still applies.

Breadth-first search, often shortened to BFS, works in layers. It starts with the current position, generates every legal one-move position, then every new position two moves away, and continues outwards. A queue preserves that order. A set of position keys ensures that reaching the same arrangement by a different route does not add it again. Because every route in an earlier layer is shorter, the first goal found has minimum depth.

This guarantee depends on counting each legal move as one equal-cost action. If rotating a piece cost differently from sliding it, the search would need to compare total costs instead. A larger board can also contain too many positions for a convenient browser search. The small demo is deliberately bounded; it illustrates the method rather than promising to solve every puzzle.

Why designers work backwards from the finish.

A finished tube sorter has a particularly clear ending: a full matching tube accepts nothing, while an empty tube supplies the final freedom of movement. To design a position, you can begin at that finish and reverse legal actions. Reversing a move requires care because the previous position must also obey capacity and exposure rules. The resulting chain gives the designer at least one known route back to the goal.

That certificate matters. Shuffling attractive colours does not prove that a solution exists. A reverse-built route demonstrates reachability, and a forward BFS can independently measure its minimum length. The two questions are different: “Can this be solved?” asks whether any route exists; “How tight is it?” asks how many choices preserve the shortest or any successful route.

Unblock levels use the same idea with geometry. Start with the target piece at its exit. Move it back into the corridor, then place blockers that force useful intermediate clearances. A blocker should create a decision, not merely add dragging. If every piece has one obvious order and no alternative, the level may be readable but shallow. If arbitrary pieces hide the only route with no readable clue, it may feel arbitrary instead.

Good backwards construction still needs forward playtesting. A designer knows the intended route; a new player does not. Playtesting shows whether the position communicates its constraints and whether an unintended easier route bypasses the idea. The solver provides a mathematical check, while the player supplies evidence about clarity.

A practical way to read a constrained position.

  1. Find the scarce resource. It might be the only empty tube, a narrow corridor, or the one screw currently exposed. Protect it until spending it creates another opening.
  2. Name the next release. Ask which buried colour or blocked piece you need to expose. A move that only looks tidy may not release anything.
  3. Check the destination, not just the piece. A safe landing needs room now and a useful exit later. Filling the last space can turn a legal move into a dead end.
  4. Compare reversible and committing moves. Moving onto an empty tube may be easy to undo. Completing a stack or sealing a corridor may not be. Spend extra thought on the second kind.
  5. Re-evaluate after every move. Previous plans describe a previous position. Look again at exposed pieces, remaining space and the goal rather than following a route by habit.

This is deliberately slower than chasing any highlighted legal move. It also explains why undo is such a useful learning feature: you can compare two futures from the same position without losing the evidence.

Questions about constraint puzzles.

Does a legal move always bring me closer to a solution?

No. Legal only means that the rules permit the move. It can consume a useful empty space, cover a piece you need, or undo a better arrangement. A solver checks the position that remains rather than rewarding movement itself.

Why does breadth-first search give a minimum number of moves?

It explores every position reachable in one move before positions reachable in two, and so on. If each action has the same cost of one move, the first time it reaches the goal is therefore a shortest route. Recording visited positions prevents repeated work and cycles.

Can a sorting or unblock puzzle be unsolvable?

Yes. A starting arrangement, restricted destination, or blocked corridor can make the required final order unreachable. Other puzzles are solvable but become unsolvable after a poor move. Those are different situations, so a solver should always search from the current position.

Does the demo solve games in the DelionPlay catalog?

No. Its tubes, colours, rules and search are original to this page. The solver understands only this four-tube model. Catalog titles are provided as places to explore related play, not as games that this tool opens or analyses.

Method and sources.

The nine-move minimum, route and legal-move checks come from DelionPlay’s original BFS implementation on this page. Independent tests replay its route, compare shorter alternatives and exercise an unreachable position. No claims are made about human performance.

Catalog names and destination paths were checked against the public catalog API on 29 November 2026, following its cursor pagination and using each returned playUrl. Read our editorial standards for the broader approach to evidence and original interactive material.