Maze generation: Difference between revisions

m
Updated the output to match the code.
(Added asynchronous behaviour to the code.)
m (Updated the output to match the code.)
Line 3,539:
<pre>
$ node main.js
Generating a maze of 10 x 10...
Done in 3ms!
+ +---+---+---+---+---+---+---+---+---+
| | | | |
+ + ---+---+ + +---+ + +---+ + +
| | | | | | | | | |
+ +--- +---+--- +---+ +---+---+ + + +
| | | | | | | | | |
+ + +---+---+ + +---+---+ + + +---+
| | | | | | | | |
+ +---+--- + + +---+---+ +---+ ---+ +
| | | | | | | | |
+ ---+---+ +---+ + +---+---+ +--- + +
| | | | | | | | | |
+ + + ---+---+ + + + +---+ +--- +
| | | | | | | | | |
+---+---+ + ---+---+ +---+ + ---+---+ +
| | | | | | | |
+ +---+---+ + +---+ ---+ ---+---+ + +
| | | | | | | | |
+---+ + +--- +---+ + +---+---+---+ +
| | |
+---+---+---+---+---+---+---+---+---+---+
</pre>