Maze RunnerAI Coursework Project · 2026

Explore Maze Runner

Ready to explore0 / 0

Choose a maze and press Run search. Coloured cells show exploration; the final line shows the escape route.

WallCorridor · 1Ivy · 3Griever · 10ExploredFinal path◆KeyS StartE Exit

BEHIND THE SEARCH

Different strategies. Different journeys.

Small experiments make the differences visible.

01

Depth or breadth?

DFS follows one branch deeply. BFS explores level by level and finds the fewest moves. Try both on the medium maze.

02

Shorter isn't always cheaper.

BFS counts moves. UCS adds terrain costs. A longer route through corridors can cost less than crossing Griever territory.

03

A little guidance goes far.

A* combines cost so far with an estimate of what's left. In Key Hunt, the estimate connects the remaining keys before the exit.

All seven search algorithms, explained

DFS Uses a stack to explore deeply. Finds a route, but doesn't guarantee the shortest or cheapest.

BFS Uses a queue to explore by depth. Fewest moves; cheapest only when all move costs are equal.

DLS Depth-first search with a move limit. A cutoff means a deeper search may still find a route.

IDS Repeats DLS with increasing limits. Finds a shallowest solution within the limit, but revisits work.

UCS Expands the lowest accumulated cost first. Finds a cheapest route with these positive terrain costs.

Greedy Chooses the smallest heuristic estimate. Can be quick, but ignores costs already paid.

A* Balances cost so far and estimated cost remaining. The provided consistent heuristics preserve optimality.

ABOUT THIS PROJECT

Original Python search logic, recreated for the browser.

A browser adaptation of the Escape the Maze AI coursework at Information Technology University. It preserves the supplied mazes, search strategies, terrain costs, and Key Hunt challenge.

Coursework by Faizan Muhammad, with (bscs25028@itu.edu.pk).

Search behaviour is checked against the Python results. Browser timings vary by device and exclude animation. A run stops at 200,000 expansions or approximately 5 seconds; these limits keep large searches manageable.

Read the coursework report ↗

REPOSITORY

Python source and coursework report.

Explore the original AI coursework, implemented search algorithms, and project documentation on GitHub.

View GitHub Repository