Giter Site home page Giter Site logo

brpapa / pathfinding-visualizer Goto Github PK

View Code? Open in Web Editor NEW
23.0 0.0 2.0 5.51 MB

๐Ÿ” A friendly visualizer for some search algorithms, like DFS, BDS, Greedy and A*

Home Page: https://pathfinding.now.sh

License: MIT License

JavaScript 0.20% HTML 1.09% TypeScript 91.85% CSS 6.86%
searching-algorithms depth-first-search breadth-first-search greedy-best-first-search a-star-search

pathfinding-visualizer's Introduction

Pathfinding Visualizer

A react-based visualization of a pathfinder, built without any UI library. You can view live here.

Concepts

Each grid item represents a node in a implicit graph.

  • Each triangle is adjacent to other 3 triangles.
  • Each square is adjacent to other 4 squares.

Features

  • 2D grid types

    • Triangle Grid
    • Square Grid
    • Hexagon Grid
  • Search algorithms

    • Depth-First Search
    • Breadth-First Search
    • Greedy Best-First Search
    • A* Search
  • Pattern generation algorithms

    • Perfect mazes
      • Recursive backtracking
    • Basic random
  • View, pause or continue the visualization

  • Immediate response to delay change during visualization

  • Draw your own wall nodes with mouse

  • Persist form inputs on local storage

  • Drag and drop the source and target nodes

  • Folding animation on changing the node state

Installation

In the root directory, you can run:

# To install all dependencies of the project.
> yarn install
> npm install

# To run the app on http://localhost:3000.
> yarn start
> npm run start

# To run the unit tests
> yarn test:unit
> npm run test:unit

# To build the bundled app for production on the `build` folder.
> yarn build
> npm run build

pathfinding-visualizer's People

Contributors

brpapa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jdiss jpelpuo

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.