Hanoi Tower programming challenge...

Dar Scott dsc at swcp.com
Thu Jul 19 00:43:27 EDT 2012


On Jul 18, 2012, at 8:22 PM, Colin Holgate wrote:

> In another tool's email list there is a thread going on about how it was possible to solve the Hanoi Tower puzzle in under 20 lines. Without getting too crazy it was possible to solve the problem in 16 lines of code. With a little craziness it could be done in 13 lines.
> 
> Assuming you have any idea what I'm talking about, how many lines of LiveCode would you need to print out all the steps of solving a Hanoi Tower game?

Maybe the command itself would take only six easy to read lines but you need a 3 line mouseUp handler to get it started.  And maybe a dozen lines of comments.

Dar




More information about the use-livecode mailing list