How the levels are made

Generating, proving and measuring a hundred tanks
By Sarthak Manchanda · 12 November 2026 · 7 min read

Fish Escape has one hundred levels and one developer, so the tanks are not drawn by hand. They are built by a small program, checked by a second one, and scored by a third. This page explains how that works, partly because players ask, and partly because knowing how a level is built tells you something about how to solve it.

Step 1 — build the tank backwards

A tank is built in reverse. The program starts with an empty board, drops in any rocks, and then adds fish one at a time. A fish may only be placed if, at the moment it is added, it has a clear straight path to the wall. Each new fish is also given an exit cell that no earlier fish uses.

Building this way has a useful consequence. If you removed the fish in the exact opposite order to the one they were placed in, each would have a clear path when its turn came. So every tank is born with at least one way to empty it, before any checking has happened.

The size of the board, how full it is, how long the fish can be and how many rocks appear all depend on the level number, and each of those settings rises gradually. Boards go from 3×3 at level 1 to 9×10 at level 91; the share of cells holding fish rises from about 42% to 90%; maximum fish length grows by roughly one cell every ten levels.

Step 2 — prove it can be solved with seaweed

Reverse building does not account for seaweed. Since an escaping fish plants seaweed on its exit cell, an order that would work on a clean board might fail in the real game. So each candidate tank goes through a solver that plays the real rules.

For tanks with up to twenty fish the solver searches every possible order, remembering positions it has already ruled out so it never repeats work. For larger tanks a full search is too slow, so it verifies one specific order — the reverse of the building order — with seaweed applied at every step. A tank that fails is thrown away. Nothing reaches players without a confirmed solution.

Step 3 — measure how hard it is

Solvable is not the same as well judged. Two tanks of the same size can differ enormously: one where almost any order works, another where a single early tap ruins everything. To tell them apart, each candidate is played several hundred times by a simulated player who taps any fish that can currently move, chosen at random, and never taps a blocked one.

The share of those random games that end in a win is the tank's score. A high score means most orders work and the level is forgiving. A low score means few orders work and the level demands planning. It is a blunt measure — real players are not random — but it tracks very well with how often people fail a level and how long they take.

Step 4 — choose the tank that fits the curve

Each level has a target score. Level 3 aims for a tank that random play wins about 85% of the time. By level 10 the target is around 63%, by level 20 about 44%, by level 50 under 20%, and by level 100 about 10%.

For every level the program generates 150 candidate tanks, discards the unsolvable ones, scores the rest, and keeps the one closest to that level's target. The best few are then re-scored with several times as many simulated games to make sure the first measurement was not luck.

This is why difficulty climbs steadily instead of lurching. Before this system, levels were simply the first solvable tank the generator produced, and analytics showed the result: players cleared the first four levels in about four seconds each with no mistakes, then hit sudden spikes later. Choosing against a curve fixed both problems.

What this means when you play

  1. Every level has a solution. If you are deadlocked, a move caused it, and Undo will take you back past it.
  2. No fish is ever trapped by its own exit. Exit cells are unique, so seaweed can only hurt a fish that needs to cross somebody else's exit.
  3. Later levels have fewer winning orders, not hidden tricks. The rules at level 90 are the rules at level 10. What shrinks is the number of orders that work.
  4. The hint is honest. It runs the same solver on your current position and shows the first move of a real solution.

What is still done by hand

The first two levels are hand-made, because a tutorial has to show one idea at a time and a generator does not know which idea you have not seen yet. The difficulty targets are also set by hand and adjusted from real play data: if a level turns out to be failed far more often than its neighbours, its target is changed and the level is regenerated. The updates page records each of those changes.

▶ Play Fish Escape

Home·About·How to Play·Guides·FAQ·Updates·Ocean Facts·Privacy·Terms·Contact
© 2026 Fish Escape · Operated by Sarthak Manchanda