TRAINTRACKS

Train Tracks Puzzle Solver

Type in a Train Tracks or Connect Tracks puzzle from anywhere and get the answer: the finished track, drawn on the grid. Handy for checking your solution or getting unstuck.

Type each clue number, tap a square to cycle through the six pieces for any grey square the puzzle starts with, and tap an edge arrow to place the entrance (A) and exit (B).

Tap a tab on the edge of the grid to set the entrance, then the exit.

How to use it

  1. Choose the grid size of your puzzle.
  2. Type the number beside every row and every column. Enter 0 where the clue is 0.
  3. Tap an arrow on the edge to place the entrance (A), then another for the exit (B).
  4. Tap each grey square the puzzle starts with until it shows the same piece.
  5. Press Solve. The track appears in the grid.

Looking for answers?

There's no fixed answer sheet for Train Tracks, because every puzzle is different, so the quickest way to get the answer is to enter the puzzle above. It shows the whole solution at once, and if the clues allow more than one railway it will tell you. Printing puzzles for the classroom or a trip? Our printable Train Tracks puzzles come with an answer key.

Connect Tracks solver

Playing Connect Tracks on iPhone or iPad? It's the classic Train Tracks puzzle, so this works as a Connect Tracks solver too. Copy the numbers beside each row and column, set the start and end points, add any pieces the board begins with, and press Solve. It covers grids from 4×4 to 9×9, so the largest Connect Tracks boards are out of range. New to the puzzle? Read how Connect Tracks relates to Train Tracks.

How the solver works

It searches for the one path from the entrance to the exit that never revisits a square, passes through every grey square with the right piece and matches every row and column count. It drops a branch the moment a count is exceeded or a square can no longer be reached. That is the same logic you use by hand in the step-by-step guide, just much faster.

Frequently asked questions

Can I get the answers to a Train Tracks puzzle?

Yes. Type the puzzle's clues into the solver and press Solve to see the complete solution drawn on the grid. It works for puzzles from this site, books and apps. For the answers to a printed sheet from our printable puzzles, tick the answer key box and the solutions are on the last page.

How do I use the Train Tracks solver?

Pick the grid size, type the numbers shown beside each row and column, tap an edge arrow to set the entrance and then the exit, and tap any squares that start with a piece already on them until they show the right shape. Press Solve.

Is this a Connect Tracks solver?

Yes. Connect Tracks is the classic Train Tracks puzzle, so the same solver works for its boards up to 9×9. Enter the grid size, the row and column numbers, the start and end points and any pieces already placed. Boards larger than 9×9 aren't supported.

Does it work for puzzles from other sites and apps?

Yes, as long as the puzzle follows the standard rules: one track from the entrance to the exit, row and column counts, no branches or crossings. It handles grids from 4×4 to 9×9, so it also works for puzzles from books and apps such as Simon Tatham's Tracks.

What if it says there is more than one solution?

Well-made puzzles have a single answer, so a second solution usually means a clue or a starting piece was entered wrongly. The solver still shows one valid answer so you can see how it fits.

Why does it say no railway fits?

Usually one clue is mistyped, so the row and column totals no longer match, or the entrance and exit are on the wrong edge squares. Check those first.

Is my puzzle sent anywhere?

No. The solving happens in your browser, so nothing you enter is uploaded.

Will using the solver ruin the daily puzzle?

It's up to you. The Daily leaderboard ranks times earned without hints, so a solved Daily wouldn't be a fair time. For learning, try solving a practice board yourself first and use the solver to check your answer.

Rather solve it yourself?