3 ms·
Same story, made something similar in straight JavaScript while I was at school and never showed it to anyone: https://jayd.ml/algorithms/search/ https://jayd.
by jaydenmilne 6y ago
Same story, made something similar in straight JavaScript while I was at school and never showed it to anyone:
https://jayd.ml/algorithms/search/ https://jayd.ml/algorithms/search/ (source https://github.com/jaydenmilne/jaydenmilne.github.io/tree/master/algorithms/search 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)