Treat an array of blocks as nodes in a graph, with the blocks above, below, to the right and left of each block as adjacent, and assign random edge weights. Then run Prim's minimum spanning tree algorithm. Voila! A block maze!
My youngest is... sort of impressed.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!