/js-mazes

Primary LanguageJavaScript

JS-Mazes

Implementations of various maze algorithms in pure ES2015 flavoured javascript.

Binary Tree Maze

binary-tree.js

(5x5):

+---+---+---+---+---+
|                   |
+   +---+---+---+   +
|   |               |
+   +   +   +---+   +
|   |   |   |       |
+   +   +   +---+   +
|   |   |   |       |
+---+   +   +   +   +
|       |   |   |   |
+---+---+---+---+---+

(15x15):

+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|                                                           |
+   +---+   +---+   +---+---+   +---+   +   +---+   +---+   +
|   |       |       |           |       |   |       |       |
+   +   +---+---+---+   +   +   +   +   +---+   +   +   +   +
|   |   |               |   |   |   |   |       |   |   |   |
+---+---+---+   +   +   +   +   +---+   +   +---+   +   +   +
|               |   |   |   |   |       |   |       |   |   |
+---+---+   +---+   +   +   +   +   +---+---+---+---+---+   +
|           |       |   |   |   |   |                       |
+---+---+---+   +   +---+   +   +---+---+---+   +   +---+   +
|               |   |       |   |               |   |       |
+---+   +   +   +---+   +   +   +   +   +   +   +   +   +   +
|       |   |   |       |   |   |   |   |   |   |   |   |   |
+   +---+   +---+   +   +   +---+---+---+   +---+   +---+   +
|   |       |       |   |   |               |       |       |
+---+   +   +   +---+---+---+   +---+---+---+---+   +   +   +
|       |   |   |               |                   |   |   |
+---+---+   +   +   +---+   +---+---+   +   +---+---+---+   +
|           |   |   |       |           |   |               |
+---+   +   +---+---+   +---+---+---+---+---+   +   +   +   +
|       |   |           |                       |   |   |   |
+---+   +---+   +   +   +   +---+   +---+---+---+---+---+   +
|       |       |   |   |   |       |                       |
+---+---+---+   +---+   +---+   +   +---+---+---+---+---+   +
|               |       |       |   |                       |
+---+---+---+   +---+---+---+   +   +   +---+---+   +---+   +
|               |               |   |   |           |       |
+   +---+---+---+   +   +   +   +   +---+   +   +   +---+   +
|   |               |   |   |   |   |       |   |   |       |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+