This project was developed for the Eutopia Pacman contest.
We considered the following factors:
- Successor Score: Potential gains from reaching a specific state (collecting food).
- Distance to Key Points: How far the agent is from important locations (food and opponents).
- Enemy Position and State: Whether an opponent is nearby and whether they are vulnerable or dangerous.
Each agent evaluates actions based on a heuristic evaluation function:
- Offensive Agent: Focuses on maximizing score by aggressively collecting food items and evading ghosts.
- Defensive Agent: Concentrates on guarding its territory and intercepting enemy Pacman.
The agents anticipate and react to opponents’ actions. For example, predicting where an opponent will move next based on their current position and potential actions, and adjusting strategies dynamically based on the changing game state and opponent behavior.