# maze-es6-solver

> Maze solver

Latest version **1.0.5** (published 2019-01-02) · GPL-3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install maze-es6-solver
pnpm add maze-es6-solver
yarn add maze-es6-solver
bun add maze-es6-solver
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-01-02 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 108.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jesús Ángel González Novez |
| Maintainers | jesusgn90 |
| Keywords | ES6, ES7, Node.js |

## Links

- npm: https://www.npmjs.com/package/maze-es6-solver
- Repository: https://github.com/jesusgn90/maze-es6-solver
- Homepage: https://github.com/jesusgn90/maze-es6-solver#readme
- Issues: https://github.com/jesusgn90/maze-es6-solver/issues
- npm.io page: https://npm.io/package/maze-es6-solver

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ^1.1.2

## Recent versions

- 1.0.5 (latest) — 2019-01-02
- 1.0.4 — 2018-09-08
- 1.0.3 — 2018-08-26
- 1.0.2 — 2018-04-22
- 1.0.1 — 2017-10-10
- 1.0.0 — 2017-10-10

## README

# Maze solver 1.0.4

[![https://travis-ci.org/jesusgn90/maze-es6-solver.svg?branch=master](https://travis-ci.org/jesusgn90/maze-es6-solver.svg?branch=master)](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/v/maze-es6-solver.svg)](https://www.npmjs.com/package/maze-es6-solver)
[![https://img.shields.io/npm/dm/maze-es6-solver.svg](https://img.shields.io/npm/dm/maze-es6-solver.svg)](https://www.npmjs.com/package/maze-es6-solver)

Simple maze solver using ES6 + recursive method.

## How to use

First, `npm install`, then:

```js
  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

- There are few algorithms to solve mazes, this is from this article:
  - [https://www.thepolyglotdeveloper.com/2015/02/solve-2d-array-maze-using-recursion-javascript/](https://www.thepolyglotdeveloper.com/2015/02/solve-2d-array-maze-using-recursion-javascript/)

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

---
_Source: https://npm.io/package/maze-es6-solver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
