Skip to content

HuynhXuanLam-IT44/Flappy-bird-deep-Q-learning-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[PYTORCH] Deep Q-learning for playing Flappy Bird

Introduction

Here is my python source code for training an agent to play flappy bird. It could be seen as a very basic example of Reinforcement Learning's application.


Result

How to use my code

With my code, you can:

  • Train your model from scratch by running python train.py
  • Test your trained model by running python test.py

Trained models

You could find my trained model at trained_models/flappy_bird

Requirements

  • python 3.6
  • pygame
  • cv2
  • pytorch
  • numpy

About

"Three screenshots of the game Flappy Bird at three different difficulties (easy, medium, hard) respectively"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages