Flappy Bird is a mobile game that involves tapping the screen to navigate a bird through a gap between pairs of vertical pipes. When the bird passes through the gap, the score increments by one and the game ends when the bird hits the floor or a pipe. Surprisingly, Flappy Bird is a very difficult game and scores in single digits are not uncommon even after extensive practice. In this paper, we create three controllers to play the game autonomously. The controllers are: (1) a manually tuned controller that flaps the bird based on a vertical set point condition; (2) an optimization-based controller that plans and executes an optimal path between consecutive tubes; (3) a model-based predictive controller (MPC). Our results showed that on average, the optimization-based controller scored highest, followed closely by the MPC, while the manually tuned controller scored the least. A key insight was that choosing a planning horizon slightly beyond consecutive tubes was critical for achieving high scores. The average computation time per iteration for the MPC was half that of optimization-based controller but the worst case time (maximum time) per iteration for the MPC was thrice that of optimization-based controller. The success of the optimization-based controller was due to the intuitive tuning of the terminal position and velocity constraints while for the MPC the important parameters were the prediction and control horizon. The MPC was straightforward to tune compared to the other two controllers. Our conclusion is that MPC provides the best compromise between performance and computation speed without requiring elaborate tuning.
Skip Nav Destination
ASME 2017 Dynamic Systems and Control Conference
October 11–13, 2017
Tysons, Virginia, USA
Conference Sponsors:
- Dynamic Systems and Control Division
ISBN:
978-0-7918-5828-8
PROCEEDINGS PAPER
How to Beat Flappy Bird: A Mixed-Integer Model Predictive Control Approach
Matthew Piper,
Matthew Piper
University of Texas at San Antonio, San Antonio, TX
Search for other works by this author on:
Pranav Bhounsule,
Pranav Bhounsule
University of Texas at San Antonio, San Antonio, TX
Search for other works by this author on:
Krystel K. Castillo-Villar
Krystel K. Castillo-Villar
University of Texas at San Antonio, San Antonio, TX
Search for other works by this author on:
Matthew Piper
University of Texas at San Antonio, San Antonio, TX
Pranav Bhounsule
University of Texas at San Antonio, San Antonio, TX
Krystel K. Castillo-Villar
University of Texas at San Antonio, San Antonio, TX
Paper No:
DSCC2017-5285, V002T07A003; 9 pages
Published Online:
November 14, 2017
Citation
Piper, M, Bhounsule, P, & Castillo-Villar, KK. "How to Beat Flappy Bird: A Mixed-Integer Model Predictive Control Approach." Proceedings of the ASME 2017 Dynamic Systems and Control Conference. Volume 2: Mechatronics; Estimation and Identification; Uncertain Systems and Robustness; Path Planning and Motion Control; Tracking Control Systems; Multi-Agent and Networked Systems; Manufacturing; Intelligent Transportation and Vehicles; Sensors and Actuators; Diagnostics and Detection; Unmanned, Ground and Surface Robotics; Motion and Vibration Control Applications. Tysons, Virginia, USA. October 11–13, 2017. V002T07A003. ASME. https://doi.org/10.1115/DSCC2017-5285
Download citation file:
31
Views
0
Citations
Related Proceedings Papers
Related Articles
State-Space Dynamic Performance Preview-Predictive Controller
J. Dyn. Sys., Meas., Control (March,2007)
Band-Limited Trajectory Planning and Tracking for Certain Dynamically Stabilized Mobile Systems
J. Dyn. Sys., Meas., Control (March,2006)
An Intelligent Predictive Controller for Power and Battery Management in Plug-In Hybrid Electric Vehicles
J. Energy Resour. Technol (November,2021)
Related Chapters
Optimum Drilling Practices
Oilwell Drilling Engineering
Case Studies
Nonlinear Regression Modeling for Engineering Applications: Modeling, Model Validation, and Enabling Design of Experiments
Feedback-Aided Minimum Joint Motion
Robot Manipulator Redundancy Resolution