Maze generation: Difference between revisions

Content added Content deleted
(Using a smaller example)
m (javascript: minor clarification)
Line 156: Line 156:
# <code>line</code> -- characters of current line
# <code>line</code> -- characters of current line


Note that this implementation relies on javascript arrays being treatable as infinite in size with false (empty) values springing into existence as needed, to support referenced array locations. (This significantly reduces the bulk of the necessary initialization code.)
Note that this implementation relies on javascript arrays being treatable as infinite in size with false (null) values springing into existence as needed, to support referenced array locations. (This significantly reduces the bulk of the necessary initialization code.)


Example use:
Example use: