This project is a Python implementation of the classic Pac-Man game. It includes different game agents, graphics rendering, and AI-controlled ghost behaviors. The game can be played using keyboard controls.
- Playable Pac-Man game
- AI-controlled ghosts
- Customizable layouts
- Graphical display using Python
To run this project, ensure you have Python installed (recommended version: 3.x).
- Clone or download the repository.
- Navigate to the project directory.
- Install dependencies if necessary:
(If a
pip install -r requirements.txt
requirements.txtfile is missing, ensurepygameor any required library is installed.)
- Open a terminal and navigate to the project directory.
- Run the following command to start the game:
python pacman.py
game.py- Core game mechanicspacman.py- Main script to start the gameghostAgents.py- AI for the ghostsgraphicsDisplay.py- Handles game renderinglayout.py- Defines the game layouts
- Use arrow keys to move Pac-Man.
- Avoid ghosts while collecting dots to score points.
- Jamal Majadle
- Matan Shabi
This project is for educational purposes. Feel free to modify and enhance it!