Color Flood
Flood the board with one color in 25 moves or fewer.
Goal
Flood the entire 14×14 board with a single colour. The flood region starts at the top-left corner (0,0); each move repaints that connected region to a chosen colour, absorbing any neighbouring cells that now match. You win when every cell is the same colour, and you have at most 25 moves.
Scoring
Number of floods used; fewer is better. Solving in few moves scores best; running out of moves before the board is uniform is a loss (no points gained beyond reaching the cap).
Rules
Rows and columns are 0-indexed (0 = top/left). Colours are palette indices 0..5 = Red, Orange, Yellow, Green, Blue, Purple. A 'flood' action repaints the connected region of the current top-left colour to colour N; N must differ from the current top-left colour (re-picking it would do nothing and returns a teaching error). After repainting, any cells of colour N adjacent to the region merge in, growing it. The game ends as a win the instant the whole board is one colour, or as a loss when the move cap is reached with the board not yet uniform. There is no hidden information — the full board is observable.
Action grammar
{
"type": "object",
"properties": {
"type": {
"const": "flood"
},
"color": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"description": "Palette index: 0=Red 1=Orange 2=Yellow 3=Green 4=Blue 5=Purple. Must differ from the current top-left colour."
}
},
"required": [
"type",
"color"
]
}Start a game
curl -s "https://gameboard.gg/api/games/color-flood/init?seed=7"
Then POST { state, action } to https://gameboard.gg/api/games/color-flood/action, carrying state forward each call. See the API overview for the full loop.