1.3.0 • Published 9 months ago

maze-generator-and-solver v1.3.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Maze generator and solver

This package is a fork of Angel Uriot project (https://angeluriot.com/maze_solver/).

It's a simplified version which generates a maze as a bidimensional array of numbers where 0 represents a path, -1 a wall and 99 is the target point.

It exports the function "generateMazeAndSolution(gridSizeX: number, gridSizeY: number): any". It takes 2 parameters as input. The width and the height of the maze.

This function returns 2 main things:

- The maze as a bidimensional array with the size we passed as parameter.
- The path from the starting point to the ending point.
    + This comes also as a bidimensional array, where the inner arrays have 2 positions and represent the coordinates.

NPM: https://www.npmjs.com/package/maze-generator-and-solver

GitHub: https://github.com/PsyanideX/Maze_solver

1.3.0

9 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago