Maze generation: Difference between revisions

Line 1,553:
 
(defn maze->str [maze]
(->> (for [y (range (count maze))]
(str/join
(for [x (range (count (cell->strnth maze [y x])))]
\newline
(cell->str linemaze [y x])))
(map-indexed
(fn [y(map line]str/join)
(str/join \newline)))
(map-indexed
(fn [x cell]
(cell->str maze [y x]))
line)))
maze)))
 
(println (maze->str (create-random-maze 10 10)))</lang>