Skip to content

PSRajput3377/Pacman-Game

Repository files navigation

AI Pacman Game 🕹️

Playing Pac-Man game

Pac-Man game

Overview

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.

Features

  • 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.

Technologies Used

  • Programming Language: Python
  • Game Development Library: Pygame

AI Techniques:

  • Pathfinding: A* algorithm
  • Finite State Machines (FSM) for ghost behaviors
  • Heuristic evaluation for adaptive difficulty

Install

  • This project run on Python 3.x
  • Install required packages by run the following code
pip install -r requirements.txt

Install dependencies:

pip install pygame

How to use the code

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published