In this post, I’ve implemented three well-known methods in TypeScript:

  • Randomized DFS

  • Randomized Kruskal’s

  • Wilson’s algorithm

Each algorithm produces mazes with different structures and “personalities.” To make the differences more tangible, I built an interactive visualization so you can generate and compare the mazes directly in your browser.

I’d love to hear which algorithm you find most interesting, let me know in the comments!

Keep Reading

No posts found