This library provides a datum for abstract map generation with:
- No need for atoms until the map is applied.
- No need to spend entire cells on walls. Each cell knows whether it's connected to its neighbors or not.
- Procs for pathfinding without applying the map first.
LICENSE: You may use this library in both commercial and non-commercial projects. Credit would be appreciated, but it is optional.
In the Prims implementation, it seems you'd benefit from breaking it up into small procs and having some internal state. This also means the API of your map generator itself doesn't balloon when you add more algorithms.