CONTROLS: Click (1st time): Place START node (green) Click (2nd time): Place END node (red) Click (after that): Place WALLS (white blocks) SPACE: Run the A* search White dots = frontier being explored White squares = visited nodes Thick white line = final path R: Reset the entire grid Walls can't be unplaced individually, so press R to start over. Each grid cell is tracked in lists (walls, scores, visited flags) instead of separate sprites. Pressing space runs A*. It repeatedly grabs the lowest-cost cell from an "open" list, checks its 4 neighbors, updates their scores, and stamps them with the pen tool until it hits the end and traces the path back. Ads on my profile/projects will be reported and deleted (including F4F and FOR).