Maze generation: Difference between revisions

Content added Content deleted
(J: document major data structure)
(J: smaller example maze)
Line 43: Line 43:
Example use (with ascii box drawing enabled):
Example use (with ascii box drawing enabled):


<lang j> display 12 maze 16
<lang j> display 8 maze 11
+ +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+ +---+---+---+---+---+---+---+---+---+---+
| | | | |
| | | | |
+ +---+---+---+---+ + + +---+---+ +---+ +---+---+ +
+ + + + +---+ + +---+---+ + +
| | | | | | | | |
| | | | | | | |
+---+---+ + +---+---+ + + +---+---+ +---+---+ + +
+ +---+---+ + +---+---+---+ + + +
| | | | | | | | |
| | | | | | |
+ +---+ +---+---+ + + + + +---+---+ + +---+ +
+---+ +---+ + + +---+ + +---+---+
| | | | | | | | | |
| | | | | | |
+ +---+---+---+ + +---+---+ + + + +---+---+---+---+
+ + +---+---+ +---+ + +---+---+ +
| | | | | | | | | |
| | | | | | | | |
+ + + +---+---+ +---+ +---+ + +---+---+---+ + +
+ +---+ + + + + +---+---+ + +
| | | | | | |
| | | | |
+ + +---+---+---+---+---+---+ +---+---+ + +---+---+ +
+ +---+---+---+---+---+---+---+ +---+ +
| | | | | | | | |
| | | | | | | | |
+ +---+---+---+---+ + + + + + + + + +---+---+
+ + + + + + + + +---+ + +
| | | | | | | | | |
| | | | |
+ + +---+ + + + +---+---+ +---+---+---+---+ +---+
+---+---+---+---+---+---+---+---+---+---+---+</lang>
| | | | | | | | |
+ + + +---+ +---+ + +---+ +---+---+---+---+---+ +
| | | | | | | | | |
+ +---+ + + + +---+ +---+---+ +---+ + + +---+
| | | | | | | | | | | |
+---+ + + + + +---+---+ + +---+ +---+---+---+ +
| | | |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+</lang>


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==