0.1.0 • Published 3 years ago

pathfinder-wasm v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

A* pathfinder visualization

The pathfinding algorithm is written in Rust, then compiled to WebAssembly. The frontend is built (mostly) with React.

Building the project from source

Assuming you have wasm-pack installed, run the following in the root directory:

wasm-pack build

to avoid publishing it via npm, we will just link the projects. Change directory to pkg, and link it:

cd pkg && npm link

then move into the pathfinder directory, install dependencies and link pathfinder-wasm:

cd ../pathfinder && npm install && npm link pathfinder-wasm

After that the application is ready to be started with npm start.

There is a lot of room for simplification and refactoring, and also the React state variables should be better arranged.

TODO

  • Add more mazes
  • Moveable starting node
  • Throttle wall toggle events
  • Rewrite in uniform style: currently it's half React and half VanillaJs..