How to Solve Water Sort Puzzles

Water sort rules in one paragraph

Each tube holds four layers. Tap a tube to pick it up, tap another to pour. All the layers of the top color pour across, as many as fit, and only into an empty tube or onto the same color. The puzzle is solved when every tube holds one color. Play water sort here while you read.

1. Read the board before the first pour

Count each color’s layers on top of tubes and find the color that is closest to free. That color is your first target.

2. Protect the empty tube

An empty tube is the only place any color can go. Fill it only when you know which color will finish there.

3. Build on the tube that already holds the most

Pour onto the tube with the deepest run of a color, not onto a fresh one. Two half tubes of red are worse than one full one.

4. Check what each pour uncovers

A good pour reveals a layer you can move next. A pour that buries a color under another is usually a mistake.

5. Finish one tube at a time

A capped tube is out of the way for good and frees up planning. Close tubes early instead of half-sorting many.

6. Undo early, not late

If the last few pours filled the empty tubes with mixed colors, step back right away. The longer you continue, the more you undo.

Why water sort gets hard so quickly

Water sort levels on this site always start with two empty tubes. With few colors there is plenty of room, but every extra color adds four layers to place and only one more tube. We tested this by letting a player make any legal move at random (never repeating a position) 30 times per level:

Water sort, 105 levels on this site
ColorsMoves (avg)Random play stuck
350%
49.80%
5151%
617.819%
721.445%
824.672%
928.698%
1031.699%
1239.6100%
1445100%

The jump happens between 6 and 9 colors. With fewer colors almost any play works; with more, most moves lead into a dead end, so planning each pour matters. More numbers are in the difficulty report.

Why water sort has no simple formula

A rule that solves every water sort board would be nice to have. Mathematicians have looked at exactly this question for water sort and ball sort:

We then show that these puzzles are NP-complete.

Ito, Kawahara, Minato, Otachi, Saitoh, Suzuki, Uehara, Uno, Yamanaka and Yoshinaka, “Sorting Balls and Water: Equivalence and Computational Complexity”, FUN 2022 (arXiv:2202.09495)

NP-complete puzzles have no known fast method that works on every board, so large boards come down to planning and trying lines. Protecting the empty tube, building on the deepest run and checking what each pour uncovers keep you away from the moves that most often end in a dead end.

Water sort mistakes that get you stuck

  • Splitting a color across two tubes. Two half runs of the same color both need a home. Merge them as soon as you can.
  • Filling both empty tubes with singles. One layer of two different colors can leave you with no legal move.
  • Pouring because you can. A legal pour is not a good pour. If it uncovers nothing useful, look for another.
  • Ignoring Undo. Undo is free on this site. Use it to test a line and step back.

Questions and answers

What is the best first move in water sort?
Usually a pour that uncovers a layer you can use right away without filling an empty tube. If every option fills an empty tube, start the color that has the most layers already on top.
Is every water sort level solvable?
On this site, yes: our solver finished every level before it was published. In general, researchers have shown that deciding whether a water sort board can be sorted is NP-complete, so there is no quick test; we run a solver on every board.
When should I use the extra tube?
Late. Use it when two or three colors are left tangled and you can see exactly how the extra space unlocks them. Spent early, it fills up like the others.
Does the same strategy work for ball sort?
Mostly. The plan is the same, but ball sort moves one ball per move, so you need more moves and more care with the empty tubes. See water sort vs ball sort.

Sources

  1. Ito, Kawahara, Minato, Otachi, Saitoh, Suzuki, Uehara, Uno, Yamanaka and Yoshinaka, “Sorting Balls and Water: Equivalence and Computational Complexity”, FUN 2022 (arXiv:2202.09495)

Play next

More guides