Skip to content
KBHXgamesAll games

Play Train Track Logic Online

Build one rail route from A to B so each row and column holds exactly the track count shown.

Train Track Logic gameplay screenshot
  • Touch-ready

Train Track Logic at a glance

Genre
Puzzle Games
Play with
Mouse, Keyboard, Touch screen
On phones
Yes, touch works
Players
1 player
Price
Free, no sign-up
License
MIT

Train Track Logic is a route-building puzzle where you finish a railway that someone left half done. Two ends of the line, marked A and B, sit on the edge of the map, and a few rail pieces are already in place. Numbers along the edges tell you how much track each row and column needs. Written by James Harvey for Simon Tatham’s puzzle collection, it is a calm, clever test of planning.

The Goal

Connect A, on the left side, to B, on the bottom, with one continuous line. The clue above each column and beside each row says exactly how many squares in that line carry track. Your finished route must match every clue and use every given piece.

Rules Explained

  1. Track uses only straight pieces and 90-degree turns.
  2. The line can’t cross itself, branch or form a closed loop.
  3. A square with track uses exactly two of its four sides.
  4. Click the edge between two squares to lay rails across it. Right-click an edge to cross it out.
  5. Click inside a square to mark that track passes through. Right-click to mark that it doesn’t.
  6. Drag across squares to mark a whole run at once.

A clue turns red if its line holds too much track. When the route is complete and correct, the map flashes. The Type menu offers twelve presets at Easy, Tricky and Hard.

Keys and Buttons for Train Track Logic

Keyboard, mouse and touch controls for Train Track Logic
What you do⌨ Keyboard🖱 Mouse👆 Touch
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 squares—Left- 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

Winning Strategies

  • Settle the extreme clues. A row with 0 is all crosses, and a row whose clue equals its length is all track.
  • Use the two-side rule. Once two sides of a track square are crossed out, the other two must connect.
  • Extend the given pieces. Every printed rail points at a neighbor that also needs track.
  • Cross out full lines. When a row reaches its count, drag crosses across the rest to keep things readable.
  • Think about direction. To reach a far column, the line must turn toward it at some point, so look for where that turn can happen.

Common Mistakes

  • Closing a small loop that can never connect to A or B.
  • Forgetting that a square marker only means “track here,” not which way it goes.
  • Counting a curve as two squares instead of one.

Who Should Play It

Train Track Logic is a good fit for players who enjoy path puzzles and steady, careful reasoning. If you like loop-drawing grids or number-clue logic puzzles, this railway will keep you busy.

Played and checked by the KBHX Games team · updated

Train Track Logic: Questions and Answers

Is Train Track Logic free?

Yes. It is free to play in your browser on a computer or phone. Pick any of twelve presets, from 8x8 Easy up to 15x15 Hard, or set a custom size, and generate as many new maps as you like.

Can the railway loop, cross or split?

No. The route is one unbroken line of straight rails and quarter-turn curves. Each square either stays empty or holds a single piece that connects two of its sides.

Should I mark squares or lay rails?

Both help. A square marker means track passes through, even before you know its direction. Laying rails links two neighbors for real. Crosses on squares or edges record places you have ruled out.

Do the starting rails count toward the clues?

Yes. Every pre-placed piece is part of the final route and counts in its row and column. The ends at A on the left edge and B on the bottom edge also start with track.

If You Liked Train Track Logic, Try These