I do more work on the random map generator for my game. It’s mostly done now; all I need is to set up spawning special rooms, like treasure rooms and the boss room.
There was a bit of time where I was struggling with a Stack Overflow error; ultimately, the error was being caused by trying to spawn more rooms than there were elements available in the array and not a product of the spawning code itself.