/AI-Playing-Pong-Game

Welcome to the AI Playing Pong Game repository! This project showcases the implementation of an AI agent that learns to play the classic game of Pong using reinforcement learning techniques. The AI learns to control one of the paddles to keep the ball from reaching its side of the screen.

Primary LanguagePythonMIT LicenseMIT

AI Playing Pong Game

Pong Game

Welcome to the AI Playing Pong Game repository! This project showcases the implementation of an AI agent that learns to play the classic game of Pong using reinforcement learning techniques. The AI learns to control one of the paddles to keep the ball from reaching its side of the screen.

Table of Contents

Installation

To get started with the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Andrew-Tsegaye/AI-Playing-Pong-Game.git
  2. Navigate to the project directory:

    cd AI-Playing-Pong-Game
  3. Install the required dependencies. You might want to set up a virtual environment first:

    # Create a virtual environment (optional)
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
    # Install dependencies
    pip install -r requirements.txt

Usage

Run the AI Pong Game using the following command:

python play_pong.py

This will start the game, and the AI will control one of the paddles. Watch as the AI learns to play the game through reinforcement learning!

Contributing

Contributions to this project are welcome and encouraged! If you have any ideas, improvements, or bug fixes, feel free to open an issue or submit a pull request. Please ensure you follow the code of conduct when contributing.

License

This project is licensed under the MIT License. You are free to use, modify, and distribute the code as per the terms of the license.

Enjoy watching the AI master the game of Pong! If you have any questions or suggestions, feel free to reach out to us.