Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

marwan38/pathfinding-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was inspired by Clément Mihailescu's path finding visualizer.

Pathfinding Visualizer

I made this because I watched a video of Clement doing it and thought it's a great idea to try and re-create it with what I've learned about drawing using Javascript's canvas/webgl. Although I later switched to rendering in SVG (Two.js is a high level api that can draw in canvas, webgl, or svg) due to performance issues. The point of this project wasn't to optimize it for performance, but rather in drawing and writing out the algorithms and experimenting with a finite state machine. The AStar algorithm was written by myself after reading a few articles online. It's almost accurate. See if you can figure out what's the missing small detail in it's implementation ;).

This works both in web and on mobile.

Libraries used

  • Two.js - A two-dimensional drawing api
  • RBush - A high-performance JavaScript library for 2D spatial indexing of points and rectangles
  • XState - A Javascript finite state machine

About

A study in path-finding algorithms and visualising them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published