Back to Projects
AI

Pac Man AI (FSM)

Pac Man AI

Overview

An implementation of a Finite State Machine (FSM) AI technique applied to the classic Pac-Man game. The goal is to autonomously control Ms. Pac-Man — deciding each movement (up, down, left, right) through the FSM logic to maximize the game score.

How it works:

  • FSM defines a set of states (e.g. chase pellets, evade ghost, hunt ghost)
  • Transitions between states are triggered by game conditions
  • Implemented in Java inside MyPacMan.java
  • Integrated into an existing Java codebase (Eclipse)
View on GitHub

Tech Stack

Java FSM AI / Game AI Eclipse