This package has been deprecated

Author message:

Used for learning, please, do not install it

maze-es6-solver

1.0.5 • Public • Published

Maze solver 1.0.4

https://travis-ci.org/jesusgn90/maze-es6-solver.svg?branch=master https://img.shields.io/npm/v/maze-es6-solver.svg https://img.shields.io/npm/dm/maze-es6-solver.svg

Simple maze solver using ES6 + recursive method.

How to use

First, npm install, then:

  import { MazeGenerator, MazeSolver } from 'maze-es6-solver';

  const mazeGenerator = new MazeGenerator(4,2);
  const maze          = mazeGenerator.run();
  const solver        = new MazeSolver(maze);

  solver.draw();
  console.log(' \n');
  console.time('TIME');
  solver.traverse(0,1);
  console.timeEnd('TIME');
  solver.draw();

Custom mazes

See the example at input/example-1.js:

  • 'E' is the entry point.
  • ' ' is path.
  • '=' is wall.
  • 'G' is the exit.

Info

I want to use recursive methods in ES6, this repository is not to another purpose!

Readme

Keywords

Package Sidebar

Install

npm i maze-es6-solver

Weekly Downloads

0

Version

1.0.5

License

GPL-3.0

Unpacked Size

111 kB

Total Files

7

Last publish

Collaborators

  • jesusgn90