Now that we've trained the DQN model, let's apply it to play the Flappy Bird game.
Playing the game with the trained model is simple. We will just take the action associated with the highest value in each step. We will play a few episodes to see how it performs. Don’t forget to preprocess the raw screen image and construct the state.