Color Flood Strategy
How color flood works
Your patch is the region joined to the top left corner. Each move you choose a color: the whole patch takes it and joins every touching cell of that color. You win when the board is one color within the move limit. It is a game version of the flood fill algorithm behind the paint bucket in drawing programs:
It is used in the "bucket" fill tool of paint programs to fill connected, similarly colored areas with a different color, and in games such as Go and Minesweeper for determining which pieces are cleared.
Play today's color flood or a practice board while you read.
1. Aim for the middle of the board
Grow your patch toward the center first. From the middle, every later move touches more of the board.
2. Choose by border, not by area
Pick the color that lines most of your patch’s edge, so the next move has more to grab. A big blob far away does not help yet.
3. Finish off colors that are nearly gone
When a color only has a few cells left, taking them removes that color from the board for good, so you need one move less later.
4. Count the colors left near the end
Once your patch covers most of the board, you need at least one move per color still showing. Pick them in an order that clears pockets in one go.
Why the greedy color flood move loses
In color flood, the greedy move (always taking the color that adds the most cells) feels right because the patch visibly grows. But a big grab in a corner can leave your border touching mostly one color, and the next move adds little. We played 400 random boards with 6 colors twice: once with a greedy player that always takes the color adding the most cells, once with our beam search solver.
| Board | Our solver | Greedy player | Extra moves | Boards where greedy was worse |
|---|---|---|---|---|
| 12×12 | 18 | 22.9 | +4.9 | 100% |
| 14×14 | 20.4 | 26.4 | +6 | 100% |
| 16×16 | 22.6 | 29.8 | +7.2 | 100% |
| 18×18 | 25.1 | 33.9 | +8.8 | 100% |
The daily puzzle gives you our solver's count plus a few spare moves, and on Sunday (18×18) none at all, so greedy play runs out of moves. More numbers are in the difficulty report.
Why no program can promise the fewest color flood moves
Finding the true minimum number of moves in color flood is a hard problem. In the paper that analysed this kind of game, 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.
Our boards use 6 colors, so the minimum cannot be found quickly in general. The solver searches many lines at once and keeps the best, so the result screen says "our solution" rather than "the minimum", and why a sharp player can sometimes beat it.
Questions and answers
- What is the best strategy for color flood?
- Grow toward the middle of the board, choose colors by how much of your border they line rather than by how many cells they add right now, and clear colors that are almost gone. Then finish with one move per remaining color.
- Is picking the biggest area each turn a good strategy?
- No. In our test on 400 boards, 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.
- Is color flood the same as Flood-It?
- It is the same kind of puzzle, often called a flood fill game: you repeatedly recolor the region joined to one corner until the board is one color. Our boards, colors and daily puzzle are our own.
- Can you always find the fewest moves?
- Not quickly. Researchers proved that finding the minimum number of moves is NP-hard with three or more colors, so our move limit comes from a solver’s best effort plus a little slack.
Sources
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.
- How Hard Are Color Sort Puzzles?Original data from our levels and solvers: moves, dead ends and greedy play.