Reinforcement Learning Examples

March 19, 2024 ยท View on GitHub

For the Python scripts, prepare your environment:

pip install gym
pip install "gymnasium[atari, accept-rom-license]"

These examples illustrate how to implement a couple reinforcement learning algorithms to play Atari games. More details on the DQN examples can be found on this blog post

A2C Agent Playing Breakout

Breakout

A2C Agent Playing SpaceInvaders

Space Invaders