Saturday, June 14, 2008
Hanoi Towers Solver
I just made a small program that solves, step by step, the Hanoi Towers puzzle for any number of disks. I though it's worth uploading it, so here it is. As always, it's a console application with nice (for my taste) ASCII graphics. It runs on both Linux and Windows as it is written in Lua. I included two Lua interpreters (for both OSes). To run it just drag and drop the .lua file on the interpreter. (after unzipping everything, of course).
Here is screenshot:
(When giving the number of disks remember that the total moves for the solution are 2^(number of disks)-1. And you will have to press as many Enters as the moves.)
Categories:
Games / Fun,
My Progs,
My Progs: HanoiTowersSolver,
Portable Applications,
Screenshots
Subscribe to:
Post Comments (Atom)
Popular Posts
-
aMSN is a nice, alternative MSN client for Windows and Linux. I use it on my computer and it works quite nice. It has most of the features ...
-
The other day, while browsing Wikipedia, I wondered how hard it must be to have weird fetishes without being able to share them with someone...
-
WINRAR (current version: 3.80) was, and still is, popular. You can tell that by the number of people seeding the torrent of it's cracke...
2^(number of disks)- 1
ReplyDeletenomizw oti einai
Sosta. To diorthosa. ;-)
ReplyDelete