TRAINTRACKS

Train Tracks Puzzle Rules: The Complete, Simple Rulebook

Updated Saturday, October 3, 2026 · 8 min read

Train Tracks has only a handful of rules, and every one of them can be checked at a glance. This is the whole rulebook in one place: the goal, each rule explained with the reasoning behind it, the six pieces, how a board is judged complete, and the extra rules that apply to this version of the game, such as lives and hints.

The goal

Build a single continuous railway from the entrance to the exit. The line may bend as often as it needs to, but it has to be one unbroken path from start to finish, and every row and column must contain exactly the number of track squares shown by its clue.

Train Tracks is a pure logic puzzle: every board has exactly one valid solution and you can always find it by deduction. You never need to guess, and if you feel you do, a deduction has been missed. That uniqueness is what makes the rules worth knowing precisely: each rule is a source of deductions.

The board

The board is a square grid: 5×5 on Easy, 7×7 on Medium and 9×9 on Hard. Numbers run along the top (one per column) and down the left (one per row). Two dark tabs sit on the border of the grid. One is the entrance, where the railway comes in, and one is the exit, where it leaves. The railway must run from one to the other.

Some squares are shaded grey at the start. A grey square already contains a piece of track. It can't be emptied or moved, and it counts towards its row and column clues like any other track square. Grey squares are free information: you don't have to decide whether they're used, only how they connect.

The six rules

A finished board satisfies all of these at once. Together they define a valid solution.

  1. The track starts at the entrance tab and ends at the exit tab.
  2. Every number beside the grid equals the count of track squares in that row or column.
  3. Each track square is either a straight (two opposite connections) or a corner (two adjacent connections).
  4. Pieces must connect to each other: no piece may have an end that points at nothing, and no piece may point off the edge of the grid, except at the entrance and exit.
  5. The track never branches and never crosses itself.
  6. Grey squares at the start are pieces already placed; they stay exactly where they are.

What counts as a piece

There are six pieces. Two are straights: horizontal (connecting left and right) and vertical (connecting up and down). Four are corners: up-right, up-left, down-right and down-left, each connecting two adjacent sides. Every square on a finished board is either empty or holds exactly one of these six pieces.

Every piece has exactly two connections. That is what makes the track a single line rather than a network: nothing branches, because no piece has three or four connections, and nothing ends in the middle of the grid, because every connection must be answered by a neighbour. The entrance and exit squares are the only places where a connection is answered by a tab instead of a neighbour.

How a board is judged complete

The board is solved the moment the railway is one continuous path from the entrance to the exit and every row and column count matches its clue. You don't need to press a button: the game recognises a complete solution automatically and the train rides the finished track.

A board with the right counts but a broken line isn't solved, and neither is a board with a perfect line but a wrong count. Both conditions have to hold. Since each puzzle has only one solution, there's only one arrangement of pieces that satisfies both.

Lives, hints and the Daily: this version's extra rules

This site adds a few rules of its own on top of the classic puzzle, to make it a game rather than just a worksheet. Wrong placements cost a life, and every size gives you three. A placement is wrong if the square isn't part of the solution. When you run out of lives you can try the same board again.

  • Easy: 5×5, three lives, two hints in practice.
  • Medium: 7×7, three lives, two hints in practice.
  • Hard: 9×9, three lives, two hints in practice.
  • Daily: same board for everyone, no hints, ranked by time.

Common rule misunderstandings

A few misreadings come up again and again, especially among new players.

  • The clue counts squares with track, not corners and not the length of a run.
  • The railway doesn't have to visit every row or column; zero-clue lines are simply empty.
  • Grey squares are part of the solution, not obstacles.
  • A crossed-out square (✕) is only your own note that the square is empty; it isn't a piece and it's free to place or remove.
  • The line can pass through the same row or column many times, as long as the total matches the clue.

Frequently asked questions

Can the track cross itself?

No. The railway never crosses itself, never branches and never forms a closed loop. It is a single path from the entrance to the exit.

Does every row and column need track in it?

No. A clue of 0 means that row or column is empty. The railway only has to satisfy each clue exactly.

How many pieces are there?

Six: two straights (horizontal and vertical) and four corners (up-right, up-left, down-right, down-left).

References

  1. Simon Tatham's Portable Puzzle Collection: Tracks: The rules of the Tracks puzzle, in its best-known open-source implementation.
  2. Logic puzzle (Wikipedia): Background on logic puzzles and the formats they take.
  3. Path (graph theory) (Wikipedia): Paths, the mathematical idea behind a single connected track.
  4. Constraint satisfaction problem (Wikipedia): The general framework behind clue-based puzzles.

Put it into practice