Git Product home page Git Product logo

legendary-mazes's Introduction

L E G E N D A R Y   M A Z E S

npm version

A tiny javascript library for creating legendary mazes ✨

a legendary maze a legendary maze animation

This library is using a recursive backtracker algorithm for maze generation — I implemented it relatively freely because it was so much fun 😃

Feel free to adapt, improve and extend the algorithm according to your needs - PR's are always welcome!

Demo or Die

Just look at this codepen: https://codepen.io/spearwolf/full/yLePxBw

In order to run the local demo app you need to start a local http server:

npx serve

Then simply call the following url with a browser of your choice: http://localhost:5000/

Documentation

Getting Started

  1. Install the module in your project
npm i legendary-mazes
  1. Import what you need
import {
  MazeGrid,
  RecursiveBacktracker,
  DistanceGrid,
  MazeCanvasRenderer
} from 'legendary-mazes';

API

Take a look into ./demo.js or ./codepen/ for examples how to use this library.

legendary-mazes's People

Contributors

dependabot[bot] avatar spearwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.