One rule, no fail state: the design of Arrow Puzzle
How a handful of strict rules, and one deliberate omission, turned into a puzzle you can learn in seconds.

Before writing any code for Arrow Puzzle, we wrote a design document. It defines every term, every rule and every data type, and it is the single source of truth the code follows. This post walks through the rules at its heart.
The core loop
Open level → Analyze board → Tap a piece → Piece exits or bounces → Repeat → Board clearedEvery decision in the game serves that loop. Anything that slowed it down, we cut.
What a piece is
A piece is an ordered list of segments. The first segment is the head, drawn with an arrowhead, and the last is the tail. A piece is between 2 and 8 segments long, can be any connected shape, and has exactly one exit direction that never changes.
The head does not have to sit at the edge of the board. It can be anywhere, which is what makes the puzzle interesting: a piece in the middle of the grid may be boxed in by pieces that are themselves boxed in.
What happens when you tap
The head tries to step forward in its exit direction, and the rest of the body follows into the cells it vacates:
- If the next cell is outside the grid, the piece exits.
- If the next cell is empty, the piece advances and we repeat.
- If the next cell is occupied by another piece, the piece is blocked and bounces back.
One detail matters a lot: as a piece moves it frees its own tail cells, so it can never collide with its own body. A long, curling snake can slide out along a path that its own tail used to occupy.
A bounce changes nothing
When a piece bounces, the board is exactly as it was before. The only things that change are your move count and your star rating. That keeps the game honest and readable: a failed tap gives you information, not damage.
The deliberate omission
There is no lose condition. We considered move limits and timers, and decided against them. The tension in this game should come from wanting three stars, not from fear of failing. If you want to sit with a board for ten minutes, you can.
Takeaway
Write the rules down precisely, give every concept one name, and be ruthless about what you leave out. Almost every later decision in the project, from level generation to scoring, became easier because the rules were small.
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.
17 November 2026How we make sure every Arrow Puzzle level can be solvedA puzzle that cannot be solved is a bug. Here is how Arrow Puzzle generates dense, winding levels and verifies each one before it ships.
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.