Skip to content

train an AI to play breakout with simple Q-learning algorthim

Notifications You must be signed in to change notification settings

lincerely/breakout-Q

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Breakout-Q

A Q-learning Agent which plays breakout well.

The breakout game is based on CoderDojoSV/beginner-python's tutorial, and the Q-learning implementation is inspired by SarvagyaVaish/FlappyBirdRL

About

To start, run:

python game.py

By default, the script will load the trained Q array from file named trainedQ_breakout.npz.

If you want to train your own agent, please rename trainedQ_breakout.npz, and run the script. Then it will initialize a new Q array. After closing the game window, the data will be saved to trainedQ_breakout.npz automatically.

Dependency

The following python package is necessary to run the script:

  • numpy
  • pygame

About

train an AI to play breakout with simple Q-learning algorthim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages