<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Roelof Wobben schreef op 15-2-2015 om
9:23:<br>
</div>
<blockquote cite="mid:54E05785.4000001@home.nl" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">YCH schreef op 14-2-2015 om 22:53:<br>
</div>
<blockquote
cite="mid:CAPtM4g=+0xw7pMaDFKMX=OOX37h=9_q8eQEGJLuKRwGd7U6qTg@mail.gmail.com"
type="cite">
<p dir="ltr">> You can put the first disk on the second or
the thirth peg.</p>
<p dir="ltr">Think a, b, c as 'src, target, temp'</p>
<p dir="ltr">So if you have only one disk on src peg, it has to
go target peg. But if you have two or more discs, you cannot
put first peg on target peg.</p>
<p dir="ltr">hanoi 1 1 2 3 = [ (1, 2) ]<br>
hanoi 2 1 2 3 = [ ?<br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/beginners">http://www.haskell.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
Hanoi 1 a b c - [ (a,b)] <br>
<br>
Hanoi 2 123 = [ ( a,b)] <br>
= [ (a,c) ]<br>
=[ (b,c) ] <br>
<br>
<br>
solved. <br>
<br>
Roelof<br>
<br>
</blockquote>
<br>
Sorry, that one is wrong. Everything is on the 3th now.<br>
<br>
Another attempt. <br>
<br>
Hanoi 2 a b c = [ (a, c)] <br>
= [ (a, b)] <br>
= [ (c, b) ] <br>
<br>
Roelof<br>
<br>
</body>
</html>