This project is a modern recreation of the classic Pacman game, enhanced with AI-powered features. Built using Python and Pygame, the game incorporates intelligent enemy behaviors and dynamic gameplay mechanics, offering a challenging and engaging user experience.
- Classic Gameplay: Navigate the maze, collect pellets, and avoid ghosts.
- AI-Powered Ghosts: Ghosts use AI algorithms for strategic movement, making gameplay more challenging.
- Dynamic Difficulty: Ghosts adapt their strategies based on player performance.
- User-Friendly Interface: Intuitive controls and a visually appealing design.
- Score Tracking: Tracks and displays the player's score in real time.
- Programming Language: Python
- Game Development Library: Pygame
- Pathfinding: A* algorithm
- Finite State Machines (FSM) for ghost behaviors
- Heuristic evaluation for adaptive difficulty
- This project run on Python 3.x
- Install required packages by run the following code
pip install -r requirements.txt
pip install pygame
- Simply type the following command
python pacman.py
- For more options
python pacman.py -h
- Use arrow keys to control Pacman and collect all pellets while avoiding ghosts.
- Earn bonus points by eating power pellets and chasing ghosts.