Back to Projects

Autonomous Pacman AI

Simulating the computer science internship hunt using advanced graph theory.

GAMEPLAY

THE PROJECT

I transformed the classic arcade game into a simulation of a computer science student navigating the internship hunt. The core challenge was building an autonomous agent capable of solving the Traveling Salesperson Problem on a grid in real time. The bot calculates the most efficient path to collect tech company logos while actively avoiding dynamic ghost enemies.

ALGORITHMIC ARCHITECTURE

To achieve high performance on large maps, I engineered a highly optimized, multi-layered routing system in Java.

  • Strategic Targeting: The high-level planner uses A* search to determine the optimal order to consume pellets. To keep the algorithm lightning fast, I implemented Prim's Algorithm to calculate a Minimum Spanning Tree (MST) heuristic.
  • Tactical Movement: For physical grid navigation, the agent relies on Breadth-First Search (BFS). It categorizes neighboring tiles by risk level, allowing Pacman to proactively route around threats and recalculate paths when a ghost gets too close.
  • Performance Optimization: As the board size increases, the state space explodes. I built custom distance and heuristic caching mechanisms to prevent redundant mathematical calculations, allowing the agent to scale seamlessly without freezing.

RESULTS AND PERFORMANCE

The optimized algorithmic architecture produced a highly performant and intelligent agent. By implementing custom distance caching and a hybrid search logic, the AI drastically reduced its computational overhead, consistently clearing complex 13×13 mazes well under the strict 20 second efficiency threshold. Additionally, the risk-aware navigation allowed the bot to successfully evade dynamic ghost threats and maintain a high win rate, proving that the underlying pathfinding logic is both lightning fast and highly adaptable to dangerous environments.

Key Metrics
Java
Implementation
Real-time
TSP on Grid
A* + MST
Strategic Layer
BFS
Tactical Layer
Technology Stack
Java
A* Search
Prim's MST
BFS
Graph Theory
Heuristic Caching
Available for Summer 2026 Internships

Let's Build Something Amazing Together

I'm actively seeking software engineering internship opportunities where I can apply my full-stack development, applied AI, data engineering, and research experience to drive measurable impact for your team.

Can start immediately for part-time roles, Summer 2026 for full-time internships.

Full-Stack & AI
React.js, Python, Java, cloud platforms, applied AI systems, and data pipelines
Engineering & Research
NSF-funded platform governance research focused on simulating multi-agent digital marketplaces in collaboration with MIT
Impact & Scale
Platforms serving 4,000+ participants, deployed experiments across 1,200+ datasets, conference presentations, and awards
vedkej@bu.edu
+1 (660) 270-4041
Boston, MA
Available Summer 2026