Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Shunting yard puzzle

A shunting puzzle: with a short headshunt and three sidings, move wagons to make up a train in the right order in as few moves as you can.

Make up this train on siding 1, from the points:

Moves: 0

How to play

  1. The goal train at the top must end up on siding 1, in that order counting from the points (the left end of each siding as drawn).
  2. Select a siding by clicking it. Choose how many wagons, then Pull them out onto the loco or Push the loco’s outermost wagons into the siding.
  3. The loco can only reach the wagons nearest the points, and the headshunt is short: the loco can hold only 3 wagons at a time (2 on the small layout). Sidings hold only as many wagons as their number in brackets.
  4. Wagons that belong in the goal train have a thick border. Finish in as few moves as you can; your best is kept on this device.

Keyboard

1 2 3Select siding 1, 2 or 3
PPull the chosen number of wagons
SPush (set out) the chosen number of wagons
ZUndo

Tips

  • Clear siding 1 first: wagons that are not wanted there have to go somewhere else.
  • Build the train from the buffer end: the wagon that must sit deepest in siding 1 goes in first.
  • Use the short sidings to turn wagons around: pulling and pushing reverses which one is outermost.

About the puzzle

This is a shunting puzzle in the classic three-siding layout loved by model railway builders: a five-wagon siding, two three-wagon sidings and a headshunt for the loco and three wagons. Each pull or push counts as one move. Random classic puzzles were checked with a full computer search of every possible yard state: all were solvable, with best solutions of 9 to 14 moves. The small layout is solved exactly by the tests, which also check the rules (capacities, which wagons the loco can reach, and their order).

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product