News for hackers. Stuff that matters.
Re:Show HN: BFS, Dijkstra and A* interactive demo made in React by jaydenmilne on Monday January 18, 2021 @12:21PM (#25824046)
Same story, made something similar in straight JavaScript while I was at school and never showed it to anyone:

https://jayd.ml/algorithms/search/ (source https://github.com/jaydenmilne/jaydenmilne.github.io/tree/ma...)

Features:

- Draw your own maze!

- Several different algorithms!

- Adjust solving speed / step algorithm!

- Bugs!

- Share your mazes in the URL (abuse link shorteners to store your data! shorturl.at/ioyT9)

I'm quite proud of how I (ab)used async/await to increase the stack size and be able to easily step and delay the algorithms without having to rewrite them to be re-entrant.

(in case you're wondering, left click to draw walls, right click to place start then end node, left click and drag on walls to go into erase mode)

There are no comments on this comment yet.