This example requires a browser that supports the HTML5 <canvas> feature.

Temporary Overlay Content

Maze Generation Algorithm - OriginShift - invented by CaptainLuma

The Maze is automatically generated by moving the origin around, starting with a Perfect Maze

OriginShift Maze Solving Algorithm - by Me (Shanvanth Arunmozhi)!

The Maze is solved from any two points by, predicting the path from the start to Origin, then from

the end to Origin, removing the overlap from those two paths,

then individually pathfinding every point in overlap origin to end

Mathematically Perfect Maze at any frame (Only one possible path from ANY 2 points)

Mathematically Perfect Solution at any frame (Displaying the only path)

Move the mouse around to move the start point

Click & Hold to Freeze the Frame

Spacebar to move the end point

Slash to drag Origin

"H" Key to hide this

Its is also 100% responsive