Play Train tracks puzzle (Tracks) online Works — plays right here, unlimited puzzles
Guide updated October 2026 · Runs via WebAssembly (native port)
Tracks is a railway logic puzzle. A train line must run from A on one edge of the grid to B on another, using only straight pieces and right-angle bends. Numbers along the top and right say how many squares in each column and row hold track, and a few pieces are already laid. The puzzle is ready below; click between squares to lay rail.
Controls — what does what
| Action | Keyboard | Mouse / touch |
|---|---|---|
| Lay track between two squares | Arrow keys to an edge, Enter | Left-click the edge |
| Mark an edge 'no track' | Space on an edge | Right-click the edge |
| Mark a square as 'has track' | Enter on a square | Left-click inside the square |
| Mark a square as 'no track' | Space on a square | Right-click inside the square |
| Mark a row or column of squares | - | Left- or right-drag across squares |
| Undo / redo | U or Ctrl+Z / R or Ctrl+R | Game menu |
FREE This is the complete game, free. Open source under the MIT licence: the complete puzzle, with a new grid every time.
Tracks is from Simon Tatham's Portable Puzzle Collection, © Simon Tatham and contributors, used under the MIT licence. Built from source by scripts/build-puzzles.mjs.
How to play
- Lay one continuous track from A to B.
- Track pieces are straight or 90-degree curves; the track may not cross or branch.
- Each clue gives how many squares in that column (top) or row (right) contain track.
- Pieces already shown at the start are part of the answer.
Sizes and difficulty
The Type menu runs from 8x8 to 15x15, at Easy, Tricky and, for the 10x10 and 15x15 grids, Hard. Tricky and Hard need you to rule out moves that would force an impossible crossing later. By default the generator avoids neighbouring rows or columns both having a clue of 1; Custom lets you turn that restriction off.
Solving tips
Rows and columns with a clue of 0 are empty; mark them with crosses straight away. Count against the clue: when a row already has as many track squares as its number, cross out the rest. A square with track must have exactly two connections, so if three of its sides are blocked the path is forced. Look at A and B first, since the line must leave each one in a fixed direction.
Where this puzzle comes from
Tracks is part of Simon Tatham's Portable Puzzle Collection, a set of about forty logic puzzles written by Simon Tatham and contributors and released under the MIT licence. Every grid is generated on the spot, so the supply never runs out, and for the grid-logic puzzles the generator makes sure each has exactly one solution, reachable by reasoning rather than guessing. The version here is the collection's own code compiled to WebAssembly; the Game menu can save a puzzle to a file and load it again, and the Type menu changes the size and difficulty.
Frequently asked questions
Can the track visit a square twice or cross itself?
No. Each square holds at most one piece, either straight or curved, and the line never crosses or branches.
What do the shaded squares mean?
They are your own notes: a left-click inside a square marks it as definitely containing track before you know which way the track runs through it.
Is Tracks free to play here?
Yes, with no limit on the number of puzzles. Tracks is open-source software under the MIT licence, and every grid is generated fresh when you press New game.
Does it work on a phone or tablet?
Yes. A tap works as a click and the puzzle resizes to fit the screen. Puzzles whose controls use the right mouse button are easier with a mouse.
More you can play in your browser
Related guides
- Pearl loop puzzle (Pearl)Play Pearl free online: draw one closed loop through the grid that turns on every black pe
- Number loop puzzle (Loopy)Play the number loop puzzle free in your browser: draw a single closed loop so each number
- Network tile-rotation puzzle (Net)Play Net free in your browser: rotate scrambled pipe tiles until every square joins one ne
- Magnets puzzle (Magnets)Play Magnets free online: fill each domino with a magnet or a blank so row and column + an
Want a game like this on your own site?
Train tracks puzzle (Tracks) isn't ours to give away — we host it, we didn't write it. But eleven of the games here we did write from scratch, and those are free for anyone to put on their own page: one line of HTML, no account, no permission, no attribution beyond a credit line.