Skip to content

Water sort solver

Copy your level in, bottle by bottle, and the solver gives you every pour in order: “Pour 2 → 5”, then the next. It uses Color Sort's rule, where the whole same-colour top run moves at once. With hidden “?” layers, it plans the safe pours that uncover the next one.

Bottles7
Pour

Paint: tap a colour, then tap a bottle to add a layer on top

0 layers

Copy your level in

  1. Set the number of bottles.
  2. Pick a colour, then tap a bottle once per layer, bottom layer first.
  3. Use “?” for layers your game hides.

Or load the sample puzzle to see it work.

How to use it

  1. Set the number of bottles to match your level. Every bottle holds 4 layers.
  2. Pick a colour, then tap a bottle once for each layer of that colour, from the bottom up. The − key under a bottle takes its top layer off.
  3. For a layer your game hides, use the “?” piece. The top layer of a bottle is always visible, so it can't be a “?”.
  4. Press Solve. The solver checks the board first: every colour needs exactly 4 layers.
  5. Step through the pours with Play or the arrow keys, and copy them into your game. “Pour 2 → 5” means tip bottle 2 into bottle 5.

Keyboard: Tab to a bottle, then Enter adds the chosen colour, Backspace removes the top layer, the left and right arrows move between bottles, the keys 1 to 9 and 0 pick the first ten colours, and ? picks the hidden piece. While stepping through a solution, the arrow keys move a pour back or forward.

How it works

The rule. You can pour a bottle's top run (all the same-colour layers on top) onto the same colour, or into an empty bottle. The whole run moves, as much as fits. A bottle that holds all 4 layers of one colour is finished and can't be poured from or into again. This is the rule in Color Sort, and in most water sort and nut sort games.

The search. The solver runs an A* search in a background worker, so the page never freezes. Two positions that differ only in the order of the bottles count as one, which cuts the work down a lot. Its estimate of the pours still needed never overshoots, so the first solution it finds is the shortest. If that search runs long, a faster one takes over and the answer is marked as not proven shortest. After a set number of positions it stops and says the level is too big for the page, rather than guessing.

Hidden layers. Colours are conserved: each colour has exactly 4 layers, so the visible layers tell you which colours the hidden ones can be. The solver looks for the shortest pours that bring a “?” to the top. It then tests those pours against the possible layouts of the hidden layers: all of them when there are few, otherwise a fixed sample. A plan is safe when no tested layout that could be won before the pours becomes impossible after them. When no plan is safe for every layout, or some layouts can't be won at all, it says so and gives the numbers.

Limits. Capacity is fixed at 4. Special pieces such as padlocks, wax seals, tall or short containers and stamped funnels aren't modelled. A sampled check is evidence, not proof, and the tool says which one you got.

Ball sort, nut sort and colour sort

They are the same puzzle with different pieces. Nut sort and most colour sort games move the whole same-colour run, like water: keep the pour rule on “Whole run”. Some ball sort games move one ball per tap; set the pour rule to “One piece” and the solver plans single moves instead.

Water sort solver questions

  • How does the solver handle question mark (hidden) colours?

    It never guesses a hidden colour. It finds the shortest pours that uncover one “?”, checks that those pours can't turn a winnable level into a lost one for any hidden layout it tests, and then asks you what colour appeared. You enter it, and it plans again.

  • Is a water sort level with hidden colours just luck?

    Partly. The pours you make before anything is revealed can be chosen safely, and that is skill. But some layouts of the hidden colours can't be won whatever you do, and the solver tells you when that is the case, and in how many of the layouts it checked.

  • Is every water sort puzzle solvable?

    No. A random deal can be impossible, especially with one empty bottle. Levels in a game are usually checked by a solver before they ship; Color Sort proves every level solvable. If this tool says “No solution”, it tried every reachable position.

  • Does it find the shortest solution?

    Usually, yes. It first searches for the shortest solution and says so when it finds it. On very big levels it switches to a faster search that finds a working solution that may be a few pours longer, and labels it that way.

  • Does it work for ball sort and nut sort?

    Yes. Nut sort and most colour sort games use the same pour rule as water sort. For ball sort games that move one ball per tap, switch the pour rule to “One piece”.

  • Why does it say “Too big to solve here”?

    To keep your phone responsive, the search stops after a few hundred thousand positions. Make a few pours you're certain of in your game, then enter the smaller position and solve again.

Learn to solve it yourself

How to solve a water sort puzzle

The rules, a worked example and the techniques that clear hard levels without help: free a bottle first, finish nearly-done colours, and never split a run.

Read the guide

Where to play Water Sort

  • Color Sort

    Water, ball and nut sort

    • Called Tinkerbrew inside the game: you sort in the night workshop of Wren, a young witch-tinkerer, and her owl Hoot.
    • One pour rule across many kinds of piece: water in bottles, nuts on bolts, marbles in tubes, gems, gears, teacups and more.
    • Every level is proven solvable by a solver, which also sets the par. Finish within 2 moves of par for 3 stars (the default). Undone moves don't count.
    • Stuck? Undo, Hint, Shuffle, or a spare holder for one piece.
    • Normal levels can't be lost. Restarting or leaving a level uses a heart.
    • Stars rebuild Wren's workshop room by room, and the weekly Moon Race is a star race on a Google Play Games leaderboard.
    • Levels play offline. The shop, leaderboards and cloud save need a connection.
  • Gridwise

    Logic puzzles in one calm app

    • Water Sort sits in Gridwise alongside its logic and number puzzles, with 300 levels of its own.
    • A level takes about 2 minutes.
    • Pip the owl's hints are there when you are stuck, and the whole app plays offline.