Skip to content

This project is a Python implementation of the classic arcade game, Pacman, with AI-powered ghosts.

Notifications You must be signed in to change notification settings

Helmy2/Pacman-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman Game

This repository contains a Python implementation of the classic arcade game, Pacman, with AI-powered ghosts. The game is built using the Pygame library and is designed to be played on a computer.

Gameplay

The objective of the game is for the player to navigate Pacman through a maze, eating all the dots while avoiding the ghosts. When all the dots are eaten, the player advances to the next level. The ghosts are powered by an AI algorithm that makes them more intelligent and difficult to avoid with each level.

Installation

To play the game, you will need to have Python and Pygame installed on your computer. You can install Pygame using pip:

pip install pygame

How to Play

To start the game, run the main.py file in the command line:

python main.py

Use the arrow keys to move Pacman through the maze. The game will automatically start with the first level. If Pacman collides with a ghost, the player loses a life. When all the lives are lost, the game is over.

AI Ghosts

The ghosts are powered by an AI algorithm that makes them more intelligent and difficult to avoid with each level. The AI algorithm uses a combination of search algorithms and heuristics to determine the best move for each ghost. The algorithm is designed to make the ghosts unpredictable and challengingto avoid.

About

This project is a Python implementation of the classic arcade game, Pacman, with AI-powered ghosts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages