Improved Version of the Pong Game Using RL TD3

An improved version of the pong game.
Updated 7 Nov 2021

View License

This program uses the TD3 RL technique to train an agnet for the pong game.
It is the same as the original one developed by Johanna Pingel (a MATLAB staff and blogger) with the following changes:
1. Another state is added to the observation-state vector called q8 with the equation: q8 = abs(ball_x-paddle_x)
2. TD3 is used instead of DDPG
3. rng is added to use the same random noise at each time the agent is trained (for comparison)
Original code:

Cite As

Ismael Abdulrahman (2024). Improved Version of the Pong Game Using RL TD3 (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with R2021a to R2021b
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Fixing typos.


Minor change.


Minor change.


Minor change.