Automatic control of Flappy Bird
Updated 27 Feb 2018

We used Flappy Bird Game developed by Mingjing Zhang and available on Mathworks file exchange to develop our controller: //
We created 3 controllers for the popular Flappy Bird Game. Our highest score was 6473. A video can be found here: More details are in the paper Matthew Piper, Pranav A. Bhounsule and Krystel K. Castillo-Villar, How to beat Flappy Bird: A Mixed-integer Model Predictive Control Approach, ASME-Dynamics Systems and Controls Conference, October 11-13, 2017, Tysons Corner, Virginia, USA.

Cite As

Pranav Bhounsule (2024). pab47/FlappyBirdController (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Video games in Help Center and MATLAB Answers

Inspired by: RoteAugen/flappybird-for-matlab

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

Added details about the paper in the Description

updated the description
- Run flappybird_heuristic for heuristic version
- Run flappybird2 for optimization version. Recommended: Download and install gurobi for speed. If no gurobi then delete the file intlinprog.m in this folder (this is the file that calls gurobi).

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.