Closed benkha closed 5 years ago
Perhaps instead: "the only legal move that does not move the same disk that was just moved." At any rate, moving the same disk twice in a row could be construed as undoing the first move.
Already changed to "Then repeatedly make the only legal move that involves a different disk from the previous move."
In Exercise 1b) of Chapter 1, it says
"For the first move ,move disk 1 to peg 1 if n is even and to peg 2 if n is odd. Then repeatedly make the only legal move that does not undo the previous move. If no such move exists, the puzzle is solved."
I think there is a problem with "make the only legal move that does not undo the previous move", since it's possible for there to be more than one legal move that does not undo the previous move.
Consider n = 2. After the first step We have moved disk 1 to peg 1. There are two possible legal moves that doesn't undo the first move: