use algorithmatic.com's in-browser integrated-development-environment here. The IDE offers syntax-highlighting, realtime validation, syntax-autocompletion, autocompletion for external-calls, interpreter and basic debugging.
Account
signin
algorithmatic.com uses OpenID - that means you don't need to register, probably you already have an OpenID, you just need to enable it. Click here to sign in
Eh, if you want to change it back just edit it, change to your version, and save it over -- Just you did not have your stuff in an execute method and were calling the write from within the algorithm. For more flexibility format text outside algorithm and just return the necessary data (disk-pin pair array or something). Same recursive logic kept.
bh3, I deleted your duplicate submissions. I hope it's okay with you. This is just for the sake of reducing redundancy. You can always overwrite your recent submissions rather than creating a new version.
Oh alright, sorry didn't know I could overwrite versions, was myself a little concerned with polluting the versions thing a bit with the combination of me seeing if the issue with the new lines was on my side of the coding and a few mistakes. Thanks.
The Tower of Hanoi or Towers of Hanoi (also known as The Towers of Brahma) is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks neatly stacked in order of size on one rod, the smallest at the top, thus making a conical shape.
The objective of the puzzle is to move the entire stack to another rod, obeying the following rules:
* Only one disk may be moved at a time.
* Each move consists of taking the upper disk from one of the rods and sliding it onto another rod, on top of the other disks that may already be present on that rod.
* No disk may be placed on top of a smaller disk.
http://en.wikipedia.org/wiki/Tower_of_Hanoi
Note: Algorithmatic only displays single line outputs in regular view :-(