← whatifs.fun

๐ŸŽจ Flood Fill

Fill the board with one color in minimum moves

Moves: 0
Par: 22
Filled: 0%
๐ŸŽจ

Board Flooded!

Board:

Moves: / Par:

Copied to clipboard!

What Is Flood Fill?

Flood Fill is a colorful strategy puzzle where you start from the top-left corner of a grid and try to "flood" the entire board with a single color in as few moves as possible. Each turn, you pick a color and your connected region absorbs all adjacent cells of that color, growing your territory. The challenge is choosing the right sequence of colors to capture the board efficiently.

The flood fill algorithm is used in every image editing program's paint bucket tool, first implemented in the 1970s.

How It Works

1. The board starts as a grid of randomly colored cells using 6 distinct colors.

2. Your territory begins as the single cell in the top-left corner.

3. Each move, pick a color from the palette. Your entire connected region changes to that color, absorbing any adjacent cells that already had that color.

4. Continue until every cell on the board is the same color. Try to do it in fewer moves than par!

What is the optimal number of moves?

The optimal number of moves depends on board size and the random arrangement of colors. For a 10x10 board the par is 15 moves, for 14x14 it is 22, and for 18x18 it is 30. Expert players can often beat par by 1-3 moves with careful lookahead planning and color sequencing.

Is there a daily challenge mode?

Yes! The daily challenge generates a board using a seed based on today's date, so every player around the world gets the same puzzle. Compete with friends by sharing your results and comparing move counts on the same board.

Can I undo moves?

Absolutely. You can undo unlimited moves using the undo button or the keyboard shortcut Ctrl+Z (Cmd+Z on Mac). This lets you freely experiment with different color strategies without any penalty to your final score.

More Puzzles

Last updated: April 2026