Skip to content

Repository files navigation

Pac-Man Game Project

Overview

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.

Features

  • Playable Pac-Man game
  • AI-controlled ghosts
  • Customizable layouts
  • Graphical display using Python

Prerequisites

To run this project, ensure you have Python installed (recommended version: 3.x).

Installation

  1. Clone or download the repository.
  2. Navigate to the project directory.
  3. Install dependencies if necessary:
    pip install -r requirements.txt
    (If a requirements.txt file is missing, ensure pygame or any required library is installed.)

How to Run

  1. Open a terminal and navigate to the project directory.
  2. Run the following command to start the game:
    python pacman.py

File Structure

  • game.py - Core game mechanics
  • pacman.py - Main script to start the game
  • ghostAgents.py - AI for the ghosts
  • graphicsDisplay.py - Handles game rendering
  • layout.py - Defines the game layouts

Controls

  • Use arrow keys to move Pac-Man.
  • Avoid ghosts while collecting dots to score points.

Authors

  • Jamal Majadle
  • Matan Shabi

License

This project is for educational purposes. Feel free to modify and enhance it!

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages