Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: sci.math Subject: Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Date: Tue, 13 Oct 2020 00:04:11 +0100 Organization: A noiseless patient Spider Lines: 16 Message-ID: <87d01n6o7o.fsf@bsb.me.uk> References: <23bc51fb-1894-4652-81e2-73039eb2ca1an@googlegroups.com> <87zh4r6wod.fsf@bsb.me.uk> <87tuuz6sk5.fsf@bsb.me.uk> <87imbf6qs2.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="afce5f1337322c0492b9f2033a532b49"; logging-data="19626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TdxQ23dYK6vCXKnvfykZlYQetNcViuow=" Cancel-Lock: sha1:BrUn3gkpbjt5tpdWmPaQQqLUOR8= sha1:KCkJUKjcLGRfOWxfCd83g1C85pY= X-BSB-Auth: 1.e8662f734b41a84e65fc.20201013000411BST.87d01n6o7o.fsf@bsb.me.uk Xref: csiph.com sci.math:501637 Basil Jet writes: > On 12/10/2020 23:08, Ben Bacarisse wrote: >> I look forward to seeing your solution. I'll be upset if it is as >> simple as mine since, it clearly generates shorter solutions. > > There is a 4 line function that moves a disc and prints it, and a 12 > line recursive function which does nothing but call itself, call the > other function and perform various "if.. else" statements. Sounds very neat. I look forward to seeing it. Mine does not actually move anything. All it does is print the moves required. -- Ben.