Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrew-tsegaye/ai-playing-pong-game


https://github.com/andrew-tsegaye/ai-playing-pong-game

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# AI Playing Pong Game

![Pong Game](https://i.imgur.com/muchiTj.jpg)

> 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](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## Installation

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

1. Clone the repository:

```bash
git clone https://github.com/Andrew-Tsegaye/AI-Playing-Pong-Game.git
```
2. Navigate to the project directory:
```bash
cd AI-Playing-Pong-Game
```
3. Install the required dependencies. You might want to set up a virtual environment first:
```bash
# 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:
```bash
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.