I was originally trying to follow this algorithm to create a little simple roguelike dungeon in C#. But I guess I'm just too stupid, because my result always came out a jumbled mess of crap.
I then switched over to my own algorithm, which produces not-great but semi-recognizable-as-a-dungeon results.
Does anyone have any examples of doing it the BSP way, as described in the linked article? It would be best if it weren't encumbered by a bunch of game details/library calls, because (again) I'm stupid.
(If you're especially masochistic and want me to post the code I had, I can, but I figured it'd be too much for an SO question.)
This doesn't link the rooms yet, but it generates okay dungeons using the algorithm described. (Unfortunately it is in Java but I tried to add some comments to clarify what is being done.)
And here's a test class to demonstrate its usage: