Can I convert FlapPyBird into an RL environment in 60 minutes?
Channel: RL Hugh
Date: 31/07/2022

I take a python port of FlappyBird created by Sourabh Verma, https://github.com/sourabhv/FlapPyBird , and try to convert it into a reinforcement learning environment. Can I do this in under 60 minutes?

This video will be the first part in a playlist, https://www.youtube.com/playlist?list=PLdBvOJzNTtDWnqjoGfkgHGogGIoywMNK6 . In the next part, we will try using reinforcement learning to learn to play Flappy Bird, using the PyTorch neural network library.

The code for this video is available under MIT license at https://github.com/hughperkins/FlapPyBird-youtube-rl/blob/rlenv/our_script.py .

Contents:
00:00 - Introduction
01:15 - Running Flappy :)
09:33 - Can we control it from Python?
21:05 - Can we detect end of episode?
24:30 - Can we feed in the action?
27:03 - Can we get the reward?
28:20 - Can we retrieve the screen contents?