How to Use the Water Sort Solver
The Water Sort Solver turns a bottle layout into a preview, validation summary, move list, and visual player. The reliable workflow is to encode the board from bottom to top, compare the preview bottle by bottle, and only then ask the browser-side search to solve it.
Quick answer
Enter the board, verify the picture, then solve
Write each bottle from bottom to top, use [] for an empty bottle, select Load JSON, and confirm that the preview matches the game before selecting Solve.
The solver uses connected-layer Water Sort pours. If your puzzle moves separate balls one at a time, read the Water Sort vs Ball Sort comparison and use the other solver.
What the Water Sort Solver Actually Does
| Stage | What the tool does | Important limit |
|---|---|---|
| Input | Reads bottle arrays and supported wrapper objects | Maximum 32 bottles; capacity is fixed at 4 |
| Preview | Draws each value as a liquid layer and lets you adjust preview colors | The preview cannot infer a missing or hidden layer |
| Validation | Rejects over-capacity, empty, unsupported, or completely full-with-no-space input | A four-per-color mismatch is displayed as a warning, not a search blocker |
| Search | Uses Water Sort moves and may try up to 2 extra empty bottles | No shortest-solution guarantee |
| Replay | Shows Previous, Next, Play, and Reset controls for the found path | A shared Water link is re-solved by the separate replay page |
| Privacy | Validation, search, and replay generation run in the browser | The tool itself does not perform screenshot recognition |
Start with a Complete Bottle Layout
This is the example already used by the Water Sort Solver. It contains two colors, four occurrences of each color, open capacity, and one fully empty bottle.
Valid example
[
[1],
[2, 1, 2],
[1, 2, 1, 2],
[]
]
- Bottle A contains one bottom layer: color
1. - Bottle B has color
2at the bottom and top. - Bottle C is full; its last value,
2, is the top layer. - Bottle D is empty and must remain
[].
Rendered meaning
Arrays are bottom to top. The highest visible block is the last value in that bottle.
A layout can be valid JSON and still describe the wrong board. The preview is the authority: compare bottle count, bottom layers, top colors, and empty space before solving.
Water Sort Solver Workflow
Record every bottle
Read bottles left to right and write each one from its bottom layer upward. Keep empty bottles in the outer array.
Load the JSON
Paste the full array into Level JSON and select Load JSON. A success message confirms the bottle count and capacity.
Audit the preview
Compare the generated bottles with the source board. Use the color controls only to improve the preview; changing preview color does not change the IDs.
Read validation
Fix hard errors first. Then inspect count warnings for a missed layer, a duplicated value, or two shades mapped to one ID.
Solve and replay
Select Solve, then inspect the first moves with Previous, Next, Play, and Reset instead of treating the text list as a black box.
What Validation Checks - and What It Does Not
Hard errors
The solver will not load
- The JSON cannot be parsed.
- A bottle is not an array or supported bottle object.
- A color value is not a finite number or string.
- A bottle contains more than 4 layers.
- The layout contains no color at all.
- There is no open slot anywhere in the layout.
- The layout contains more than 32 bottles.
Visible warning
The solver can still search
The Color Count Check marks colors that do not appear exactly four times. That is useful because standard capacity-four levels usually need four layers per color, but the current Water tool does not make that count warning a hard validation error.
Fix the mismatch whenever the source game uses standard rules. Otherwise the search may operate on data that does not represent the intended puzzle.
How to Read a Water Sort Move
A label such as A → B identifies the source and target bottles. The move generator counts the connected run of the same color at the source top and pours as many of those layers as fit in the target.
A = [2, 1, 1]
B = [1]
A = [2]
B = [1, 1, 1]
This move transfers two connected top layers because the colors match and Bottle B has enough room. Copied solution text adds (2 layers) for this kind of multi-layer pour.
Search Results, Extra Bottles, and Replay
Valid solution
The result includes a move count, a lettered move list, and a visual player. Every replay state is built from the returned moves.
Extra-bottle solution
The solver tests the original layout first, then the same layout with one and two additional empty bottles. It reports when the answer depends on that helper space.
No result within limits
This does not prove that every theoretical search method would fail. Recheck the JSON and consider whether the source game includes another empty bottle or a different rule.
What Share Solution sends
The Water share payload contains the starting bottle arrays and preview palette. The Solution Replay page restores that start state and searches for a move sequence again. It is not the same payload model as the Ball Sort Solver, which carries validated moves.
Common Water Sort Solver Problems
| What you see | Likely cause | What to check |
|---|---|---|
| Preview is upside down | Bottles were entered top to bottom | Reverse each inner array, not the outer bottle order |
| Wrong top color | The final value in that bottle is incorrect | The last value must be the exposed top layer |
| Count warning | Missed layer, duplicated layer, or confused shade | Count the same color across the entire board |
| No empty space error | Every entered bottle has four layers | Add the empty or partly filled bottle visible in the game |
| No solution found | Input mismatch, unsupported variant, or search limit | Recheck preview and standard capacity-four rules |
| Screenshot did nothing | The solver does not receive images | Use the copied prompt externally, then paste and verify returned JSON |
Use the Guide with the Real Tools
For syntax details, open the Bottle JSON Format Guide. For move planning, continue with the Water Sort Strategy Guide.