Skip to content
Reinforcement Learning using Q-learning on a Flappy Bird agent
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
flappy-bird-PLE.py
requirements.txt

README.md

flappy-bird-q-learning

Reinforcement learning using Q-learning on a Flappy Bird agent. Read my blog post in this link

Running the code

  • Clone the repository
  • Install Python 3.6+
  • Create a virtual environment
python -m venv venv
  • Activate the virtual environment
source venv/bin/activate
  • Install the packages from requirements.txt
pip install -r requirements.txt
  • Train the agent
python flappy-bird-PLE.py
  • Uncomment this code if you want to see the agent learn in normal speed
# time.sleep(0.01)
You can’t perform that action at this time.