Makes Ye Olde dungeons!
It will make a new one every few seconds. This is intended for a game but I sort of forced it into a quick and dirty demo. You may use the engine if you like in future projects but a word or credit would be nice since this has been an intensive project. The blue square is the exit stair and the orange dots are items and treasures. I'm sort of a game maker at heart it seems.

Apologies to Zawran, I sort of wanted to code my own engine from the ground up. I did appreciate your code though.
Here is the complete project, demo, source, image , readme
http://www.filefactory.com/file/129047/I suppose an even better demo may be made if you make the blocks 3D and walk a camera from room to room using the A* algorithm.