Reinforcement Learning Pong AI Agent

Pong AI Agent Demo.

Overview

I have implemented a reinforcement learning (RL) pong agent, using a Deep Q Network. The game uses Pygame for visualisation and PyTorch. Key Features include:

This project is designed to run on either CPU or GPU.

DQN Model (model.py, agent.py)

Improvements

The agent struggles to deal with the ball being hit at just before the corner so it has to change direction rapidly. Also, the model struggles with the initial start of the game, where the ball is moving directly horizontally.

Available here.

PyTorch DQN Tutorial here.