(defrecord Maze [doors walls visited ...])
Might clean up the code a bit to have an explicit record. Shouldn't require many changes, since records can do almost everything maps can, but are significantly more performant, and help document what your data looks like.
If we go this route, I'd like to experiment passing the entire maze structure to all fns, with each fn destructuring out the pieces it needs.
Might clean up the code a bit to have an explicit record. Shouldn't require many changes, since records can do almost everything maps can, but are significantly more performant, and help document what your data looks like.
If we go this route, I'd like to experiment passing the entire maze structure to all fns, with each fn destructuring out the pieces it needs.