TRAINTRACKS

Train Tracks Clue Numbers Explained: How to Read the Edges

Updated Saturday, October 3, 2026 · 8 min read

The numbers around the edge are the whole puzzle. Everything else on the board is either a consequence of them or a way to check them.

What a clue means

Each number counts the squares in its row or column that contain track. It does not count the number of turns, and it does not tell you the length of the longest run. A 3 means exactly three squares in that line hold a piece, wherever they are: three in a row, three scattered, or two together and one apart.

The count includes every piece type. A straight counts as one, a corner counts as one, and a grey pre-placed square counts as one. The tabs themselves are outside the grid and aren't counted, but the square next to a tab is.

The four readings of a clue

At any point in a puzzle, every clue is in one of four states, and recognising which one tells you what to do. For each row and column, count the squares already holding track (placed) and the squares still undecided (open), then compare with the clue.

  • Clue is 0: the whole line is empty. Cross out every square.
  • Placed already equals the clue: the line is complete. Cross out every remaining open square.
  • Placed plus open equals the clue: every open square must be track. Fill them in (as 'certainly track', even if the piece shape isn't known yet).
  • Placed plus open is greater than the clue: the line is undecided. You need other information, such as the border rule or a neighbouring clue, to narrow it down.

Zero and full lines

A 0 empties the whole line, and a clue equal to the grid width fills it. These are the easiest readings on the board, so do them first. They're also the most informative per square: a zero line removes a whole row or column from play, and a full line pins down every square in it.

A near-zero or near-full clue is almost as good. A 1 on a nine-square line says the railway touches that line in exactly one square. An 8 on a nine-square line says exactly one square is empty. In both cases, you can usually work out where the exception must be from the neighbouring clues.

Open squares versus the number

As you play, keep a running comparison of each clue with what's placed and what's open. If a row's clue is 4, two squares are placed and exactly two are open, both open squares are track. If the clue is 4, four are placed and three are open, those three are empty. This is the count-and-cross loop that drives the whole puzzle.

Worked example

Reading a clue as the board fills

A 7×7 row has the clue 4. At the start, seven open squares and no placements: undecided. Two squares get an ✕ from zero columns: five open, clue 4, still undecided.

You place one grey square and one forced piece: two placed, three open, clue 4. The line still needs two more track squares from three open squares. One of the three is empty. The neighbouring columns' clues, or the border rule, will tell you which.

The totals must match

Add the row numbers and you get the railway's length in squares. Add the column numbers and you get the same figure, because both count every track square exactly once. If your reading of the clues doesn't give equal totals, you've misread a clue.

This is an excellent habit on larger boards, where a misread digit is easy. On a Hard 9×9 board, taking five seconds to add up both sets of numbers can save a minute of fruitless deduction from a wrong starting point.

Small numbers, big information

A 1 tells you the line passes through that row or column in exactly one square. A 2 on a nine-wide line is nearly as strong. Small clues limit where the track can go far more than large ones, so work the small numbers hardest.

A clue of 1 has a second consequence: the single track square in the line is one of the squares where the railway crosses that row or column. If the entrance is on one side and the exit on the other, the railway has to cross that line somewhere, and the single track square is the crossing. That often pins down the position of an entire stretch of route.

Frequently asked questions

Do the clues count turns?

No. A clue counts the squares in its row or column that contain track, whatever the piece. It says nothing directly about turns or run lengths.

Do grey pre-placed squares count towards the clue?

Yes. A grey square holds a piece of track, so it counts like any other track square in its row and column.

Why do the row and column totals have to match?

Both sets of clues count every track square exactly once, so each adds up to the length of the railway. If they differ, a clue has been misread.

References

  1. Simon Tatham's Portable Puzzle Collection: Tracks: The rules of the Tracks puzzle, in its best-known open-source implementation.
  2. Nonogram (Wikipedia): History and rules of nonograms, which also use edge clues.
  3. Constraint satisfaction problem (Wikipedia): The general framework behind clue-based puzzles.

Put it into practice