How we make sure every Arrow Puzzle level can be solved
A puzzle that cannot be solved is a bug. Here is how Arrow Puzzle generates dense, winding levels and verifies each one before it ships.

In most games a bad level is annoying. In a puzzle game, an unsolvable level is a broken promise. This post covers how Arrow Puzzle builds its levels and how we check them.
Solvable by definition
A level is solvable if there is an ordered list of pieces such that tapping them in that order clears the whole board. That sounds simple, but a level with 20 pieces has an enormous number of possible orders. We cannot rely on eyeballing it.
So every level is validated by simulation before it is allowed into the game.
Simulate before you animate
The movement rules live in plain game logic, separate from any drawing code. A function takes a piece and a board and answers one question without animating anything: does this piece exit, or does it bounce, and where?
Because that function is pure and fast, the same code can power the real game, the level validator and the tests. When the validator searches for a solution, it simply applies one clear piece at a time and checks that the board eventually empties.
The validity checklist
Beyond solvability, every level must pass a set of structural checks:
- Every segment is inside the grid
- No two pieces share a cell
- Each piece is a connected chain, with every segment orthogonally adjacent to the next
- At least one piece can move at the start, so the player is never stuck on the first tap
- Early levels have at least two movable pieces and a shallow dependency chain
We also track dependency depth, the longest chain of the form "piece A must leave before piece B can leave". Deeper chains mean harder levels.
Dense on purpose
Sparse boards are easy and dull. We aim to fill 90 to 95 percent of the grid, so there is always something in your way. The generator grows pieces by random-walking through free cells, which is how we get long S-curves, zigzags and spirals instead of a board full of tidy L shapes.
Difficulty is mostly size
Rather than inventing many special mechanics, we scale difficulty mainly with the grid. Each of the five packs uses a larger board than the last, which brings more pieces, longer snakes and deeper dependency chains. The generator takes the grid width and height as parameters, so we can tune sizes without rewriting anything.
Takeaway
Make your rules executable. When the same simulation drives the game, the validator and the tests, a whole class of bugs cannot exist.
More from the Arrow Puzzle devlog
All posts
21 November 2026Building a puzzle game with Flutter and RiverpodA look at how Arrow Puzzle is organised: logic kept apart from the UI, custom painters for the snakes, and a small, testable core.
15 November 2026A logo drawn in code, and a Home screen to matchArrow Puzzle's logo is not an image file. It is four game pieces and a wordmark painted by the same code that draws the board.
15 November 2026Shipping web updates without asking players to clear their cacheWe moved Arrow Puzzle to Cloudflare Workers, then fixed a stubborn problem: returning visitors seeing an old build after every deploy.