Project icon

Maze Wanderer

A procedurally generated maze that can be explored using the A* pathfinding algorithm.

JavaScript
Try it Live

An interactive maze that can be explored using the A* pathfinding algorithm, procedurally generated using a minimum spanning tree made with Prim's algorithm. When the user clicks on a location in the maze, the A* algorithm will find and animate a path to that location. Clicking on a location outside of the maze will generate new chunks, making the maze theoretically infinite. The display is made up of a grid of HTML elements that are dynamically resized and recolored based on the user's panning and zooming using the mouse wheel and arrow keys.