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
-
It seems that the most popular article on this blog is " How to make portable applications " written back in 2007. Reading it aga...
-
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...
-
If you just switched from Windows to Ubuntu Linux you might have missed some application like Google Earth or Skype . For easy installatio...
2^(number of disks)- 1
ReplyDeletenomizw oti einai
Sosta. To diorthosa. ;-)
ReplyDelete