How Hard Are Color Sort Puzzles?
How these color puzzle numbers were measured
Every number in this report is computed by a script from the levels we publish, not typed by hand. Sort levels store the shortest solution our solver found, so "moves" means that solution, not a proven minimum. "Stuck" is the share of 30 random playthroughs per level that ended with no legal move left: a player who picks any legal move and never returns to a position already seen. The color flood figures come from 100 random boards per size with 6 colors, solved by our beam search and by a greedy player.
Water sort: moves and dead ends by number of colors
In water sort, each extra color adds a tube and roughly three to five moves. The bigger change is how unforgiving the board becomes: up to 5 colors almost any sensible play finishes, but from 8 colors on a random player gets stuck on about 72% of boards, and from 9 colors on nearly every time.
| Colors | Tubes | Levels | Moves (avg) | Moves (range) | Random play stuck |
|---|---|---|---|---|---|
| 3 | 5 | 1 | 5 | 5–5 | 0% |
| 4 | 6 | 5 | 9.8 | 8–11 | 0% |
| 5 | 7 | 10 | 15 | 13–17 | 1% |
| 6 | 8 | 15 | 17.8 | 16–21 | 19% |
| 7 | 9 | 20 | 21.4 | 19–24 | 45% |
| 8 | 10 | 16 | 24.6 | 23–26 | 72% |
| 9 | 11 | 13 | 28.6 | 25–30 | 98% |
| 10 | 12 | 10 | 31.6 | 29–33 | 99% |
| 12 | 14 | 7 | 39.6 | 37–42 | 100% |
| 14 | 16 | 8 | 45 | 42–47 | 100% |
Ball sort needs more moves than water sort
Ball sort uses the same tubes and colors, but each move carries one ball. A run of three same-colored layers that water sort moves in one pour takes three ball moves. The gap widens with more colors, and random play gets stuck much earlier.
| Colors | Water sort | Ball sort | Ball / water |
|---|---|---|---|
| 3 | 5 | 11 | 220% |
| 4 | 9.8 | 14.4 | 147% |
| 5 | 15 | 16.9 | 113% |
| 6 | 17.8 | 20.9 | 117% |
| 7 | 21.4 | 25.4 | 119% |
| 8 | 24.6 | 30.1 | 122% |
| 9 | 28.6 | 34 | 119% |
| 10 | 31.6 | 40.1 | 127% |
| 12 | 39.6 | 51.7 | 131% |
| 14 | 45 | 62.3 | 138% |
| Colors | Levels | Moves (avg) | Moves (range) | Random play stuck |
|---|---|---|---|---|
| 3 | 1 | 11 | 11–11 | 50% |
| 4 | 5 | 14.4 | 13–16 | 68% |
| 5 | 10 | 16.9 | 14–19 | 81% |
| 6 | 15 | 20.9 | 19–23 | 93% |
| 7 | 20 | 25.4 | 23–28 | 99% |
| 8 | 16 | 30.1 | 28–32 | 100% |
| 9 | 13 | 34 | 29–37 | 100% |
| 10 | 10 | 40.1 | 36–43 | 100% |
| 12 | 7 | 51.7 | 46–58 | 100% |
| 14 | 8 | 62.3 | 56–72 | 100% |
Color flood: the greedy move loses
The natural strategy in color flood is to take whichever color adds the most cells right now. Our test pitted that greedy player against a beam search solver on the same boards. Greedy play was behind on every board, and the gap grew with the board.
| Board | Solver (avg) | Solver (range) | Greedy (avg) | Extra moves |
|---|---|---|---|---|
| 12×12 | 18 | 16–21 | 22.9 | +4.9 |
| 14×14 | 20.4 | 15–24 | 26.4 | +6 |
| 16×16 | 22.6 | 20–26 | 29.8 | +7.2 |
| 18×18 | 25.1 | 21–31 | 33.9 | +8.8 |
The daily board gives you the solver's move count plus a few spare moves (none on Sunday), so greedy play usually runs out. The color flood strategy guide shows what to do instead.
Gradient puzzles: more tiles, closer colors
Gradient levels grow from a 4×5 board to 8×10, and the fewest swaps rises from 3 to 75. At the same time neighboring tiles get closer in color: the smallest step between neighbors falls from about 0.062 to 0.026 in OKLab units, the perceptual color space we use to mix the tiles.
| Tier | Board | Movable tiles | Fewest swaps | Smallest step |
|---|---|---|---|---|
| 1 | 4×5 | 6 | 3 | 0.062 |
| 2 | 4×6 | 11.2 | 5–7 | 0.052 |
| 3 | 5×6 | 18.5 | 11–12 | 0.046 |
| 4 | 5×7 | 25 | 17 | 0.04 |
| 5 | 6×7 | 31.3 | 21–25 | 0.036 |
| 6 | 6×8 | 37.3 | 28–31 | 0.032 |
| 7 | 7×9 | 53.8 | 43–46 | 0.03 |
| 8 | 7×10 | 61.8 | 53–59 | 0.027 |
| 9 | 7×10 | 66 | 62 | 0.028 |
| 10 | 8×10 | 76 | 75 | 0.026 |
What researchers have proved about sort and flood puzzles
The numbers in this report describe the levels on this site. The general picture comes from two papers on the complexity of these puzzles. For water sort and ball sort:
We then show that these puzzles are NP-complete.
For flood fill games like color flood, where c is the number of colors:
We show that finding the minimum number of flooding operations is NP-hard for c>=3 and that this even holds when the player can perform flooding operations from any position on the board.
For this reason, our sort levels and our daily color flood both rely on search programs rather than a formula, and why the flood move limit is a solver's best effort, not a proven minimum.
Spike levels in our color puzzles
Every fifth level in water sort, ball sort and the gradient puzzle is a spike. In the sort puzzles a spike averages 12 colors against 7.1 for the other levels. The level after a spike drops back down so you can breathe.
Questions and answers
- How many moves does a water sort puzzle take?
- On our levels, about 5 moves with 3 colors and about 45 moves with 14 colors, counting the shortest solution our solver found. Every pour counts as one move.
- Is ball sort harder than water sort?
- It takes more moves. With the same number of colors, ball sort needs 13% to 120% more moves than water sort on our levels, because each move carries one ball instead of a whole run of one color.
- Why do I keep getting stuck in water sort?
- Because most moves are traps once there are enough colors. A player who picks any legal move at random gets stuck on 72% of our water sort boards with 8 colors, and on 98% or more from 9 colors up.
- Is taking the biggest area the best color flood strategy?
- No. Always taking the color that adds the most cells needed 4.9 more moves than our solver on 12×12 boards and 8.8 more on 18×18 boards, averaged over 100 boards per size.
Sources
- Ito, Kawahara, Minato, Otachi, Saitoh, Suzuki, Uehara, Uno, Yamanaka and Yoshinaka, “Sorting Balls and Water: Equivalence and Computational Complexity”, FUN 2022 (arXiv:2202.09495)
- Clifford, Jalsenius, Montanaro and Sach, “The Complexity of Flood Filling Games”, Theory of Computing Systems, 2012 (arXiv:1001.4420)
- Björn Ottosson, “A perceptual color space for image processing” (2020)
Play next
More guides
- What Is a Color Puzzle?A plain definition, the main kinds of color puzzle and what makes each one hard.
- Gradient Puzzle TipsHow to read a gradient, where to start and how to finish in the fewest swaps.
- How to Solve Water Sort PuzzlesA step-by-step strategy for water sort, with the mistakes that get you stuck.
- Water Sort vs Ball SortThe one rule that separates them and what it does to the number of moves.
- Color Flood StrategyWhy the greedy move loses and where to aim instead, backed by solver data.