VISUALIZER

Dynamic AI Pathfinder 🚀

In the world of Artificial Intelligence, pathfinding is a fundamental challenge. Whether it's a GPS navigating city streets or a character in a video game moving through a map, the logic remains the same: how do we get from Point A to Point B?

For my latest project in AI 2002 – Artificial Intelligence, I developed a Dynamic AI Pathfinder. This isn't just a static maze solver; it's an interactive simulation that visualizes the "thinking process" of six core uninformed search algorithms in real-time.

🧠 The Challenge: Navigating the Unknown

The task was to build a Graphical User Interface (GUI) that demonstrates how different "blind" search strategies explore a grid. To make things interesting, the environment is dynamic. While the agent is moving, obstacles can randomly spawn, forcing the AI to detect the blockage and re-calculate its path on the fly.

🛠️ The Algorithms Under the Hood

I implemented six fundamental search strategies:

🔄 Strict Movement & Dynamic Events

To ensure the search was consistent, I followed a strict clockwise expansion order. Every algorithm explores neighbors in this order:

The real-world twist? Dynamic Obstacles. With a defined probability, a hurdle can spawn at any random empty location during each step of the algorithm. If the path is blocked, the AI triggers a "re-planning" sequence to find a new route to the target.

🎨 Visualization: Watching the AI "Flood" the Grid

A console output wouldn't do this justice. Using Pygame, I built a GUI titled "GOOD PERFORMANCE TIME APP". The interface distinguishes between:

The animation runs with a slight delay, allowing you to watch the search algorithm "flood" the grid as it hunts for the destination.