Skip to the game
ArrowsGame
EN

Design

What makes a good arrow puzzle level: notes from our generator

On this page
  1. A level is a set of "after you" promises
  2. How our generator builds a board backwards
  3. Why random boards almost never work
  4. Five rules that reject a candidate
  5. The opening: two or three real choices
  6. The first twelve levels, and the wall we moved
  7. Pacing 1,000 levels: chapters, badges and set pieces
  8. Decoys: lines that look clear and are not
  9. Our checklist, in 2D, on the cube and in the daily
  10. Questions and answers

Every board in our arrow puzzle was made by a program and then judged by a second one. This guide opens both up. We read the generator that built the 1,000 levels of the 2D game, its log for levels 201 to 1,000 (13,161 candidate boards, each one scored and most of them thrown away), and then ran the solver that ships with the site over every finished level to see what survived. The numbers below come from those files, not from memory, and every level we name opens on this site in one click, so you can check a claim by playing it. The ideas are not specific to our game: anyone who makes tap-to-clear puzzles faces the same choices about openings, depth and dead time, and the trade-offs we made are written down here with the numbers that pushed us.

The short version

A good level is solvable by construction, opens with two or three real choices, and then keeps asking small questions: never long runs where everything is free, never long runs where only one arrow moves. Our generator builds the board backwards from the solution so it can't be unsolvable, then rejects candidates that are too deep, too flat or full of tiny filler arrows.

#A level is a set of "after you" promises

Strip away the colours and an arrow level is a list of promises. Each arrow promises to leave once the arrows on its line have gone, so the whole board is a set of "after you" relations. Designing a level means shaping that set, and three numbers describe most of it:

  • Free at start: how many arrows can leave on the untouched board. It decides how the first ten seconds feel.
  • Layers: the rounds the solver needs if it sends every free arrow at once. It is the length of the longest "after you" chain, and it is what our difficulty labels are built on.
  • Single-choice stretches: runs of layers where exactly one arrow can move. A few are tense; a long run is a search with nothing to decide.

Size matters less than you would think. Level 701 has the most arrows in the game (203) and 36 layers, while level 287 has only 31 arrows and 22 layers, with a run of 16 layers in a row where a single arrow can move. The second is far harder to read than its size suggests. Our guide to hard levels measures that across all four labels.

What players feel as "a good level" sits between those numbers: enough freedom at the start to get going, enough chain to make each tap matter, and moments where the board narrows and you have to look. Everything the generator does is aimed at those three things.

Try it: level 1250 arrows · 2 free at the start

#How our generator builds a board backwards

The obvious way to make a solvable board is to place arrows in the order they will leave, each new one aimed so it can't be blocked by the ones still to come. We tried it, and it stalls: boards built that way stop at about four fifths full, with holes no arrow fits. Our generator turns the job round. It fills first and decides directions afterwards:

  1. Cover the board with paths. Random walks start in the tightest spots (corners and pockets first) and keep choosing the neighbouring cell with the fewest free neighbours, the rule Warnsdorff gave for the knight's tour in 1823. A setting says how often a walk turns. Short walks are then joined end to end.
  2. Peel the paths in play order. A path can be peeled when the line from one of its ends is clear of everything not yet peeled. Its layer is one more than the highest layer among the peeled arrows on that line, and that end becomes its head.
  3. Split when stuck. If nothing can be peeled, or the board already has as many free arrows as the level wants, one path is cut so that a piece can leave later instead.
  4. Keep the strongest candidate, then polish. Each level is generated from 10 to 100 seeds; the closest match to the level's targets is kept, then 400 to 600 random head-for-tail flips are tried, keeping each one that leaves the board solvable and no further from its target depth and opening.
Level 5, 12 × 14 board, 21 arrows, shown at the start and after layers 2, 5 and 8
Figure 1Level 5 peeling layer by layer, the generator's order replayed: 5 arrows can leave at the start, 14 remain after layer 2, 6 after layer 5 and 2 after layer 8. Play level 5

Because layers are fixed the moment a path is peeled, the generator knows the exact depth and opening of the board before anyone plays it, and the board is solvable by construction. Of the 803 boards that are not pictures, 652 cover at least 99% of their cells. This is a standard pattern in procedural generation: build an answer first, then hide it.

#Why random boards almost never work

Why not fill the board with random arrows and keep the ones that solve? Because almost none do. We took the 608 levels that use no special pieces and pointed every arrow a random way, 50 times per level. On boards of 31 to 60 arrows, 17 of 17,550 tries could still be cleared; on boards above 60 arrows, 1 of 6,500. A random board locks itself: somewhere two arrows face each other, or a ring of them each waits on the next, and nothing in that knot can ever leave.

Even one wrong arrow is usually enough. Turning a single arrow round, one at a time, on every classic level, broke the board in 13,269 of 28,100 tries (47%). The worst case is level 435, where 38 of its 51 arrows would lock the level if reversed. A finished board is a narrow target.

That is the real reason to generate backwards. It also gives players a promise: a level in our game can't dead-end. Sending any free arrow is always safe, since an exit can only open space on the board, never fill it. Why that holds, and why it makes our puzzle easy for a computer but not for a person, is the subject of are arrow puzzles mathematically hard?.

#Five rules that reject a candidate

Solvable is the floor, not the goal. Every candidate is scored, and a candidate that breaks one of five rules is set aside unless nothing better turns up. For levels 201 to 1,000 the generator made 13,161 candidates (10 to 33 per level) and logged why it turned them down:

The generator's log for the last 800 levels (a candidate can fail more than one rule)
Reason a candidate was turned downTimes logged
Too deep for the level's target (more than 6 layers over)1,946
A long single-option stretch (6 or more layers)695
No real decision: many arrows free at once for 3+ layers325
Most moves trivially free (under 80% of arrows start blocked)320
Filler: over 20% of cells in arrows of 2-3 cells233

Depth was the most common failure by far. Long chains are easy to make and miserable to play when they come by accident, so the generator treats depth as a target, not as a score to maximise. Only 7 of the 800 levels had to accept a candidate that still broke a rule.

Two softer numbers then decide between the survivors: how many arrows start blocked (the median finished level has 94% of its arrows waiting on others) and how many travel far, with a head six or more cells from the tail (26% at the median). Both reward boards where tapping means something. Across all 46,261 arrows in the game, arrows of two or three cells hold only 4.3% of the covered cells, and an arrow turns 2.89 times on average.

#The opening: two or three real choices

The opening is the one moment every player sees, so it gets its own target. On levels 5 to 11 it is generous, about one free arrow for every nine, between 5 and 10 in all. From level 12 the target drops to two or three, and 802 of the 989 levels from 12 onwards open with exactly two or three movable arrows. That is the zone where challenge and skill meet, the balance psychologists describe as flow.

Why so few? With one free arrow the first move is forced and the level reads as a riddle with a single answer, which is fun now and then but tiring as a diet: 57 levels open that way. With eight or more, the first taps need no thought at all. Two or three gives a real choice that is still easy to scan for. Level 12 is a typical result: 50 arrows on a 20 × 23 board, 2 free at the start, 16 layers.

Level 12, 20 × 23 board, 50 arrows, 2 movable at start
Figure 2Level 12, a Hard board from the hand-set opening: 50 arrows and 2 free at the start, numbered. Play level 12

Pictures and the lighter slots in each seven-level cycle aim for three, the rest for two: a picture's outline hides the straight edge you scan first, so it gets one more way in. The beginner tips show how to read an opening; the complete guide lists the opening of every chapter.

#The first twelve levels, and the wall we moved

The early boards are planned one by one. Level 1 is drawn by hand. Levels 2 to 4 must match the arrows, layers and opening in the table exactly, and the generator tries up to 4,000 seeds until one fits. Up to level 21 every board has its own hand-set targets; after that a formula with a seven-level cycle takes over.

The opening of the game, measured by the site solver
LevelBoardArrowsFree at startLayersWhat it is for
14 × 5441Four arrows, all free: the rule itself
25 × 5422First wait: one arrow behind another
35 × 5423A chain of three
48 × 10714One way in, seven arrows
512 × 1421510The first real board
615 × 223059Bigger boards, longer chains
720 × 2856619Bigger boards, longer chains
822 × 3063721Bigger boards, longer chains
940 × 3872820Hard picture (an arrow shape)
1034 × 42921034Picture board (a heart), 34 layers
1120 × 2347521Bigger boards, longer chains
1220 × 2350216Hard: two free arrows, long chain

The order was not always like this. In the first release, level 5 was a 72-arrow Hard picture board that came straight after the 7-arrow level 4, and the apps' analytics showed it as the early wall, a board where many new players stopped. Version 1.0.2 sorted levels 5 to 9 by size, so the climb now goes:

  1. Level 4: 7 arrows on 8 × 10.
  2. Level 5: 21 arrows, and the first board with ten layers.
  3. Level 6, level 7 and level 8: 30, 56 and 63 arrows, each a step up from the last.
  4. Level 9: the 72-arrow picture, now one more step on the climb instead of a cliff after 7 arrows.

Nothing about that board changed. Its place did. Pacing is design too, and the only honest way to judge it is to watch where people stop.

#Pacing 1,000 levels: chapters, badges and set pieces

Past the opening, the levels come in 20 chapters of 50, and each chapter has a plan rather than a random walk up a difficulty slope:

  • A flavour. A family of pictures, a board style (tall, wide, rings, islands, stripes) or an arrow style (long snakes, stubby crowds, twists, straight runs). The log counts 41 ring boards, 47 island boards and 45 long-snake ones among the last 800 levels.
  • A rhythm. Standard, quick, picture, deep and set-piece boards in turn, with neighbours that always differ in size, shape and arrow length. The 193 quick "snack" boards are the breathers.
  • A Hard badge every seventh level (level 12, level 19, level 26 and on, plus level 9), 142 in all. The badge changes no rule; it warns you, and it lifts the level's label by one step.
  • A new piece every twelve levels from level 16, each with a teaching board, then three easy practice boards, then the mix. 608 of the 1,000 levels still use plain arrows only.
  • Set pieces: spirals, mirror boards, domino chains and words. Level 501 spells "500", level 550 spells "WOW", and level 1000 spells its own number.
  • A boss at the end of each chapter that combines its pieces.

Inside a level there is a rhythm too. Single-choice layers bunch up at the end: across the game, 1,925 of them fall in the last third of a level and 474 in the first third. The board narrows as it empties, which feels like a finish rather than a stall. The piece guide covers each piece's teaching board. The Letters & Numbers chapter is the easiest place to see a set piece.

#Decoys: lines that look clear and are not

One small thing separates a board that is merely correct from one that is fun to read: arrows that look free and are not. We measured it. At the start of every layer of every level, we followed each blocked arrow's line to the arrow in its way and counted the empty cells between. Of 354,304 such sightings, 77% were blocked right at the head, which anyone sees at a glance. But 23,015 (6%) ran six or more empty cells before meeting anything.

Level 61, 24 × 30 board after 44 taps, a 2-cell arrow whose line is blocked 26 cells away
Figure 3Level 61 after 44 taps: arrow 1 looks free, but its line runs 26 empty cells down the board and stops at the arrow drawn in light blue. Play level 61

Those long, clear-looking lines are what cost lives, and also what makes the board worth looking at. The longest in the game, 44 empty cells, crosses the wide word board of level 501. On a board you can take in at a glance, level 61 has one of 26: after 44 taps, the 2-cell arrow at column 12, row 2 points down along 26 empty cells and only then meets an arrow near the bottom edge. We don't add decoys by hand; the peel creates them whenever a late arrow's line crosses a big hole. The filter's "far" score keeps enough long arrows on the board for them to happen.

The cost of a decoy is set by the rules, not the board: a bump costs a life only on an arrow's first bump. Our list of common mistakes shows how to spot a long line before you trust it.

#Our checklist, in 2D, on the cube and in the daily

Put together, this is what we mean by a good arrow puzzle level, in the order we check it:

  1. It can't be lost by order alone: built backwards, solvable by construction, verified by a second solver.
  2. The opening offers two or three real choices (more on the first boards and on pictures).
  3. The depth matches the label it will wear, instead of being as deep as possible.
  4. No stretch of three or more layers where everything is free, and no long stretch where only one arrow moves, except in set pieces built around that idea.
  5. Arrows are long enough to make lines worth reading, with few two- and three-cell fillers.
  6. It differs from its neighbours, and it sits where its size makes sense in the climb.

None of these is a law. The textbook on the subject, Procedural Content Generation in Games, describes many other ways to make levels. Ours is what the research field calls search-based content generation: write down what you want as numbers, generate a lot, and keep what scores well. The numbers only capture what we thought to measure, which is why the last check is always people playing. If a level feels wrong to you, it probably is; the level list shows every board's label, and unlimited mode plays them in order.

The arrow cube uses the same generator on the surface of a box. The paths walk over the six faces and, when the generator asks them to, carry straight on round an edge, which is why so many cube arrows bend. Peeling works the same way, except that an arrow's exit line runs straight along its own face and never wraps. The labels are set on a wider scale (up to 15 layers is easy on the cube, against 12 in 2D) because six faces open more arrows at once. You can play the cube here; the arrow cube guide has the numbers for all 2,000 cube levels.

The daily puzzle borrows from both games and adds one more rule from design rather than generation: a hard or expert day is never followed by another, so today's puzzle can be tough but never two days running. The daily puzzle guide explains how the calendar is drawn.

#Questions and answers

How are arrow puzzle levels made?

Ours are made by a program that fills the board with paths, then picks each arrow's direction by peeling the paths in the order they will leave, so every board is solvable by construction. Each level is generated from 10 to 100 seeds and the candidate closest to its targets for depth and opening is kept.

Can an arrow puzzle level be impossible?

A badly made one can: if two arrows face each other, neither can ever leave. When we pointed the arrows of our plain levels a random way, almost no board above 30 arrows could be cleared. Our levels are built backwards from a solution and checked by the site's solver, so every one of the 1,000 2D and 2,000 cube levels can be finished.

What makes a level feel hard but fair?

A small, readable opening, a long chain of arrows waiting on arrows, and no long stretches where nothing needs deciding. Our generator rejects boards that are too deep for their label, boards where many arrows are free for several rounds, and boards with long one-arrow-at-a-time runs.

Play the game

A new daily board every day, over 1,000 levels and the 3D arrow cube, free in your browser.

#Sources