Train Shunting
Cars wait in a line at the entry. Send the front car, one at a time, to the exit or into a siding. A siding is a dead end, so the car that went in last comes out first. Line the cars up at the exit in the target order.
Tap the track a car is on, then tap where it should go.
How to play
Line up the cars at the exit in the same order as the “Target” row to win. First tap the track with the car you want to move (the entry or a siding), then tap the track it should go to. Only the leftmost car on each track can move. A siding is a dead end that you enter and leave from its left side, so the last car in is the first one out. The exit fills from the left, in the order you send cars. If you send the wrong car to the exit, the puzzle can no longer be finished. Use Undo if that happens.
Learn more
These 15 levels were made by this site’s own program. A breadth-first search over where every car is (entry, sidings and exit) finds the fewest moves, and every level is checked. “Last in, first out” is called a stack in computing, and with only one siding some orders simply cannot be built.