What a difference a ‘!’ makes. As soon as I got to the computer this morning I realized why my maze generator was getting stuck in an infinite loop. I had accidently reversed a conditional expression. With that fixed I made some rapid progress. I am particularly proud of my function for pretty walls. It turns this:
Much better wouldn’t you say?
Also, although you don’t see them yet I have code that populates the maze with monsters and items. Making them work is tomorrows task.