Mike Meyer schreef op 14-2-2015 om 22:38:


On Sat, Feb 14, 2015 at 3:35 PM, Roelof Wobben <r.wobben@home.nl> wrote:
I know.

Eveyone says there is a pattern but I do not see it at the moment.

Maybe I do the wrong first move with more then 2 disk.

You can put the first disk on the second or the thirth peg. 

Think about which peg you want the stack to end up on, and what your last move HAS to be based on the rules. 


_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners

The peg which the stack has to end is C if you name the pegs A,B,C.

The  last move I still have to figure out . With 2 disk the last move is b -> c and for 3 disk the last move is A -> C so there is something I do not the right way,
I willl continue to do this on paper so I can figure it out.

Roelof