0.1.0 • Published 4 years ago
pathfinder-wasm v0.1.0
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 buildto avoid publishing it via npm, we will just link the projects. Change directory to pkg, and link it:
cd pkg && npm linkthen move into the pathfinder directory, install dependencies and link pathfinder-wasm:
cd ../pathfinder && npm install && npm link pathfinder-wasmAfter 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..
0.1.0
4 years ago