For MindReps
How to play Trail: one line through every cell
By InfyGlow Solutions
To play Trail, draw one continuous line that starts on 1, passes through every cell of the grid and through the numbers in order, and never crosses a wall [1]. The line ends on the last number, and each puzzle has exactly one solution.
The rules
- Start on the cell marked 1.
- Move from cell to cell up, down, left or right, never diagonally.
- The line visits every cell exactly once and never crosses itself.
- Pass through the numbers in order: 1, then 2, then 3, up to the last number, where the line ends.
- A thick bar between two cells is a wall: the line cannot cross it [1].
- Every puzzle has exactly one solution.
A route that visits every point exactly once is what mathematicians call a Hamiltonian path [2]. In Trail, the numbers and walls narrow the possible routes down to one.
Three techniques to start with
1. Corners and tight cells
Every cell except the start and the end has the line coming in and going out, so it uses exactly two of its open sides. A corner cell has only two sides open to begin with, fewer if a wall blocks one. If a corner cell is not 1 or the last number, the line must use both of its open sides. Draw those two short pieces straight away. The same goes for any cell that walls have left with only two open sides.
2. Do not cut off a cell
Before you take a step, look at the cells beside it. If your move would leave a cell with only one way in and out, and that cell is not the last number, the line could reach it but never leave it. That move is wrong. Leaving a pocket of cells that the line can no longer reach is also wrong.
3. Treat the numbers as checkpoints
The stretch of line from one number to the next can never pass through any other numbered cell, because that would take the numbers out of order. So the stretch from 3 to 4 has to go around 5, 6 and every other number. Numbers close together with a wall between them are a good place to start: the line has to go around the wall, which often decides a whole stretch.
A quick example
On a 5 by 5 grid with no walls, 1 sits in the top-left corner and the last number in the bottom-left corner. The other two corners hold no number, so neither can be an end of the line. The top-right corner has only two neighbours, the cell to its left and the cell below it, so the line must run through both: draw that small bend now. Do the same in the bottom-right corner.
Now add a wall: say a thick bar sits just below the cell to the left of the top-right corner. That cell now has only two open sides, left and right, so the line runs straight through it and the bend from the corner grows by one cell. Work outwards from the pieces you are sure of, then join them up in number order.
Play Trail in MindReps
Trail is one of six puzzle types in MindReps, with Sudoku, Nonogram, Numbers, Crowns and Balance. You drag your finger across the cells or tap the next cell; dragging back over the last cell takes a step back, and tapping a cell on your line cuts it back to there. Each type has an endless mode with fresh boards and a Daily Challenge that is the same for every player that day, and you can keep a daily streak with streak freezes.
For a puzzle about numbers instead of lines, see how to play Numbers.
Common questions
Do I have to use every cell? Yes. The line must pass through every cell of the grid exactly once, not just the numbered ones.
Can the line go diagonally? No. It moves only up, down, left or right, and never across a wall.
What if I reach the last number too early? Then some cells are still empty, so that route is wrong. Go back to the last point where you had a choice and try the other way.
Sources
- MindReps: daily Sudoku, Nonogram and logic puzzles (opens in a new tab) (InfyGlow Solutions), read 21 November 2026.
- Hamiltonian path (opens in a new tab) (Wikipedia), read 21 November 2026.