doolhof
Doolhof, which stands for a labyrinth in Dutch, helps you genrates a maze, using Prim's algorithm.
Install
npm install doolhof
or
yarn add doolhof
Usage
const maze = row: 5 // The row count of the maze. Walls are excluded. Default: 10. col: 5 // The column count of the maze. Walls are excluded. Default: 10. start: 1 0 // The coordinate of the entry. Walls are included. Default: the top-left corner. end: 9 10 // The coordinate of the exit. Walls are included. Default: the bottom-right corner. maze // Generates a new maze with the given option.maze // Get the formatted data of the maze.