[Haskell-beginners] tower hanoi problem

Mike Meyer mwm at mired.org
Sat Feb 14 21:38:01 UTC 2015


On Sat, Feb 14, 2015 at 3:35 PM, Roelof Wobben <r.wobben at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150214/abf67f1b/attachment.html>


More information about the Beginners mailing list