<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Stupid error <br>
<br>
Then it must be like this : <br>
<br>
hanoi n 1 2 3 <br>
| n = 1 -> moves the last disk to the goal peg <br>
| n > 1 -> moves all the other disk to the spare peg or
to the moves n -1 to the goal peg<br>
<br>
<br>
Roelof<br>
<br>
<br>
Mike Meyer schreef op 17-2-2015 om 17:57:<br>
</div>
<blockquote
cite="mid:CAD=7U2CRcPXtD_h_0KH1Lf8b+oS1PxgJ3e-s6KZ0RLxAFB52JA@mail.gmail.com"
type="cite">
<p dir="ltr">
On Feb 17, 2015 10:50 AM, "Roelof Wobben" <<a
moz-do-not-send="true" href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>>
wrote:<br>
><br>
> N reprent the number of disk <br>
</p>
<p dir="ltr">So how does moving 0 disks happen? That is what your
first case deals with.</p>
<p dir="ltr">> Roelof<br>
><br>
><br>
> Mike Meyer schreef op 17-2-2015 om 17:47:<br>
>><br>
>><br>
>> On Feb 17, 2015 10:18 AM, "Roelof Wobben" <<a
moz-do-not-send="true" href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>>
wrote:<br>
>> ><br>
>> > This part I understand well. <br>
>> ><br>
>> > So you could do something like this:<br>
>> ><br>
>> > hanoi n 1 2 3 <br>
>> > | n = 0 -> moves the last disk to the goal
peg <br>
>> > | n != 0 -> moves all the other disk to the
spare peg or to the moves n -1 to the goal peg<br>
>><br>
>> What does n represent here?<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Beginners mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
>> <a moz-do-not-send="true"
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Beginners mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
> <a moz-do-not-send="true"
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>