Maze Generators in JavaScript. The code comes from Mazes for Programmers, originally written in Ruby, ported to JavaScript and slightly modified to reflect my own idea. But the core logic is the same.
You will need parcel installed. If it's not installed in your system, install it first.
$ npm install -g parcel-bundler
Clone the project.
$ git clone https://github.com/ntalbs/maze-js.git
$ cd maze-js
Run parcel
:
$ parcel index.html
This will run server on port 1234
. You can override the default port with the -p <port_number>
option.
$ parcel -p 4000 index.html
Generated maze with hunt-and-kill algorithm.