cools maths gamesSurprise me

Train Track Logic

Build a single rail line from A to B through a grid, matching the track count on every row and column.

Train Track Logic title screen
  • Works on mobile
Report a problem

Train Track Logic is a grid puzzle about finishing a railway. Two ends of the line, marked A and B, sit on the edges of the map, and a few rail pieces are already laid. Your goal is to connect A to B with one route so that each row and column has exactly the number of track squares its clue shows.

How Train Track Logic Works

The route enters at A on the left side and exits at B on the bottom. It may use only straight rails and right-angle curves. It cannot branch, cross over itself or form a loop.

Numbers across the top count track squares in each column, and numbers on the right count them in each row. Every square on the route uses exactly two of its four sides.

You lay rails by clicking the edge between two squares, which joins them. Right-clicking an edge puts a cross there to show the line cannot pass. Inside a square, a left click adds a marker for “track goes here” and a right click adds a cross for “no track.” Dragging marks a whole line at once. The Type menu has twelve presets from 8x8 to 15x15 at Easy, Tricky or Hard.

Your First Few Minutes

  1. Pick an 8x8 Easy preset from the Type menu.
  2. Find rows or columns with a 0 and drag crosses across them.
  3. Find lines whose clue equals their length and mark every square as track.
  4. Extend each printed rail piece into the square it points at.
  5. When a square has two crossed-out sides, lay rails on the other two.

Controls for Train Track Logic

Keyboard, mouse and touch controls for Train Track Logic
To do thisKeyboardMouseTouch screen
Lay a track piece across an edgeArrow keys to move onto an edge, then EnterLeft-click the edge between two squaresTap the edge with Tap set to Track
Mark an edge as "no track here"Space on an edgeRight-click the edgePress and hold the edge, or set Tap to Cross and tap
Mark a square as "has track" / "no track"Enter / Space on a squareLeft-click / right-click inside the squareTap / press and hold inside the square
Mark a whole line of squaresnot usedLeft- or right-drag across several squaresDrag (press and hold first for crosses)
New game, undo, redoN, U, RMenu buttons above the gridMenu buttons above the grid

What It Trains

Each square is a tiny rule check. You ask which two sides the track could use and cross off the rest, then follow the effects to the next square. Holding the row and column counts in mind while the route bends across the map is good practice for careful, step-by-step logic.

Strategy Notes

  • Settle the extreme clues. Zeros and full lines are free information.
  • Use the two-sides rule. Two blocked edges on a track square force the other two.
  • Grow from given pieces. Each one names a neighbor that must hold track.
  • Cross out filled lines. Once a clue is met, mark the rest of that line as empty.
  • Never close a loop. A loop can never connect both A and B.
  • Plan your turns. Reaching a distant column means the line has to bend toward it somewhere.

Good to Know

You can play with a mouse, keyboard or touch, where a Tap setting switches between track and crosses. There is no timer and no sound. James Harvey wrote this puzzle for Simon Tatham’s Portable Puzzle Collection.

Train Track Logic questions and answers

How hard are the puzzles?

Easy grids can usually be solved by filling in forced squares one at a time. Tricky and Hard ask for longer chains of reasoning across the board, and the 15x15 maps take real patience. Start small and work up.

Do the starting pieces have to stay?

Yes. Any rail printed on the map at the start is part of the final route. Treat each one as a fixed clue and extend it outward, since it already tells you which neighbors must carry track.

How do I know the route is finished?

The map flashes once the line runs unbroken from A to B and every row and column clue is met. If a row or column has too much track, its clue turns red so you can fix it.

What if I make a wrong turn?

Back up with the U key or the Undo move button, as many steps as it takes, and redo with R. If you give up on a map, Solve draws the full route for you.

Games that use logic like Train Track Logic

Different rules, same kind of thinking.

Try something from another shelf