WoodCentral Forums

Est. 1998 — 27 years of woodworking knowledge

Friday Puzzler -- Train

Posts

Friday Puzzler -- Train

#1

Friday Puzzler -- Train

Alex Y

Below is a diagram of a train setup. The locomotive, at the upper left, can fit through the tunnel on the right side, but both boxcars A and B have wide loads that prevent their passing through the tunnel.


Your task is to swap the places of A and B, returning the locomotive to its original spot, in as few operations as possible. An "operation" here is movement of the locomotive, up until it:

* reverses direction

* hooks up with a (or an additional) car to either push or pull

* unhooks from a car

*stops.

The boxcars can be hooked together (and that defines the end of an operation).

The picture is unclear on one point--the locomotive can pull to the right and reverse to go down to the bottom without hooking up with or pushing A. Similar room exists at the bottom.

No "flying switch" is possible. I.e, if you push one of the boxcars onto one of the spurs, you need to push it , then back up to clear the switch before going to the other side of the oval by that route.

Re: Friday Puzzler -- Train

#2

correction

Alex Y

In the picture, both A and B should be further to the right, so that it is possible to fit both the locomotive and one boxcar between the other boxcar and the switch.

This obviously doesn't make any difference in the solution, just the operation count--you could always push the other boxcar. But by moving them to the right, you don't have that operation.

Re: Friday Puzzler -- Train

#3

Train -- first four steps

Alex Y

This one was frustrating for me. There is no "Aha" solution, at least that I have been able to find. I played around with it (I used a penny for the locomotive and nickel and quarter for the two boxcars --too hard to do in your head) and when I came up with a solution, I couldn't repeat it. Anyway, here are the first four (of 16) operations needed to effect the transfer.

1 Move the locomotive to the right and hook up with A

2 Pull A to the bottom

3 Push A to the siding on the left and unhook

4 Pull back off the siding and reverse direction

Visually, here are the positions at the start and after each of these operations:


👍 This page answered my questions

Your vote helps other woodworkers quickly find the answers and techniques that actually work in the shop.