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.
To get started with the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Andrew-Tsegaye/AI-Playing-Pong-Game.git
-
Navigate to the project directory:
cd AI-Playing-Pong-Game
-
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
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!
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.
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.