Maze generation: Difference between revisions
Content deleted Content added
m →Graph |
|||
Line 2,617:
Here I generate a maze as a graph. Vertices of the graph are cells and edges of the graph are removed walls. This version is mush faster and is convenient to solve.
<lang mathematica>MazeGraph[m_, n_] :=
unvisitedQ}, unvisitedQ[_] := True;
maze = MazeGraph[13, 21]</lang>
{{Out}}
|