Here's one of Sam Loyd's puzzles with a little taste of mathematics.
The applet below simulates the puzzle. To help grasp the essence of the puzzle, the applet gives an option to first try catching one chicken with just one member of the family: the farmer catching the rooster or the wife the hen. While writing the simulation I made an assumption, I believe implicit in Sam Loyd's formulation. Holding on to a live chicken not being a simple matter, a fellow who caught a chicken loses the ability to help out the mate in catching the other bird.
To play, drag a farmer or his wife from one location to another, but only one location left, right, up, or down . When both are present, they both are to be moved before the chickens try to escape their pursuers.
Besides the standard 8×8 board, the applet also allows to play the game on the 7×7 and 6×6 boards.
Here's Sam Loyd's original solution:
|
The amusing point of this puzzle is that, play as you will, the "man" can never catch the "rooster" nor the "woman" the "hen," for, as they say in chess or checkers, the rooster "has got the move" on the man, and for the same reason the woman can never get the "opposition" on the hen. But if they reverse matters, the man going after the hen and the woman after the rooster, the chickens are captured easily! One chicken can be taken on the eighth move, the other on the ninth.
|
A short experimentation with the puzzle is sufficient to convince one of validity of Sam Loyd's assertion. It's impossible for the farmer alone to catch the rooster and for the wife the hen. It does not make sense either for one of them to help another in catching one of the birds. For that feat would leave the good hearted one one-on-one against the remaining chicken. Because of the symmetry of the starting positions, if such a task can be accomplished, the first fellow would not need any help to start with.
However surprising it may seem, the only possibility that remains is to make the farmer catch the hen and the wife the rooster. To me this is the gist of the puzzle and not counting the minimal number of moves needed.
So how is this possible that the farmer can catch the hen but cannot catch the rooster? For the wife the situation is obviously reversed.
A square P on a checkerboard is naturally described by a pair of integers P = (r, c), where r stands for the row number, c for the column number. As the distance function between to squares we adopt the city-block distance dist1 (also known as the taxicab distance):
dist1((r1, c1), (r2, c2)) = |r1 - r2| + |c1 - c2|,
where, as usual, the vertical bars denote the absolute value.
Let PR, PF, PW, and PH denote locations of the rooster, farmer, wife, and the hen, respectively. At the outset,
dist1(PR, PF) = 2, dist1(PF, PH) = 5.
Three observations are important:
- The capture is only possible if the distance between the two opponents is 1 just before the human moves.
- A single move by either a chicken or a human changes the distance between them by 1.
- Unless it's captured, a move by a chicken restores the parity of the distance between it and the pursuing human.
It thus follows that if the distance dist1(PR, PF) is even just before the farmer moves, his move can't prevent the rooster from moving. The distance between them will remain even before the farmer's next move. According to the observation #1, the farmer is incapable of catching the rooster.
The initial distance dist1(PF, PH) between the farmer and the hen is odd. The farmer can always force the hen into one of the "corner" squares staying at the distance 2 from it (for example being on the diagonal square next to the corner.) The next hen's move will shorten the distance to 1 so that on the next move the farmer will be able to pounce on the hen capturing the bird.
The same logic applies for the 6×6 board, but not for the 7×7 one. On the latter, the farmer is initially at even distances from both the hen and the rooster. Therefore, he can't catch either. The same is true of the wife. The conclusion is that for the given configuration, the 7×7 puzzle could not be solved.
Copyright © 1996-2008 Alexander Bogomolny