Skip to content

Simple game that applies two different reinforcment algorithms to play flappy bird

Notifications You must be signed in to change notification settings

jgresc/FlappyBird-GameAgent

Repository files navigation

Flappy Bird played by Reinforcement Learning Algorithms

Overview

This project was created as an assignment for a lecture at the UZH. A group of 4 students were involved. The project uses two different reinforcement learning algorithms, both of which are applied to the game Flappy Bird. The reinforcement learning algorithms were taken from other existing Repos and merged into one project and the model was re-trained.

Algorithms

  • Asynchronous Actor-Critic Agents (A3C)
  • Deep Q-Network

Installation Dependencies:

  • Python 3.5
  • pygame
  • Keras 2.0
  • scikit-image
  • TensorFlow
  • OpenCV-Python
  • h5py

How to Run?

samlpe

git clone https://github.com/jgresc/FlappyBird-GameAgent.git
cd RLGameAgents
python run.py

Train Results

Different hyperparameters were tried out, such as various activation functions for the A3C algorithm. sample

The DQN algorithm was less efficient, and took more time to produce decent results. sample

However, it also turned out that the trained DQN can play FlappyBird better than the A3C on average.

Disclaimer

This work is highly based on the following repos:

About

Simple game that applies two different reinforcment algorithms to play flappy bird

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages