Maze Solver

Upload or photograph a black and white maze, choose the start and end points and get a solution in milliseconds. Edit an existing maze or generate one around a route you draw.

About this project

Upload or photograph a black and white maze, choose the start and end points and get a solution in milliseconds. Edit an existing maze or generate one around a route you draw.

What you can do

  • Upload, photograph or drop in a maze image
  • Edit an existing maze
  • Or generate a maze around a route you draw

Behind the scenes

  • Converts the maze image into a binary grid (white = open, black = wall)
  • Uses A* search to find a short route while preferring space away from walls
  • Uses randomized depth-first search to generate a perfect maze around the drawn route, preserving one true solution

Curious how this toy demo connects to real-world problems?

Drop a note at maze@ouatu.ro

This is an open-source project. Feel free to explore the source code on GitHub .