Back to projects Experimental
Experimental

Maze Generator & Pathfinding

AlgorithmCreative CodingSimulation
Overview

An algorithm-focused project for exploring maze generation and pathfinding systems. While experimenting independently, I developed a pathfinding approach that closely resembled the A* algorithm — only discovering the established solution after the fact.

Target

A personal exploration of graph theory, search algorithms, and their visual representation.

Mission

Understand pathfinding from first principles by building it before looking at existing solutions.

Challenges

  • Implementing maze generation without a reference algorithm
  • Developing an efficient pathfinding approach through pure experimentation
  • Visualizing search states clearly in real time

What I Learned

Graph theory and how it maps to physical maze structures
A*-style heuristic search — discovered independently before formal study
The value of building before researching established solutions
Depth-first and breadth-first search visualization

Technologies

P5.jsJavaScript

© 2026 Hatem Mazid