Sure, here's a sample implementation of Flappy Bird game written in a single HTML file using JavaScript:
This implementation creates a Flappy Bird game with a canvas element for rendering the game. The player can control the bird's movement by clicking the canvas or using the spacebar key. The game ends if the bird collides with the pipes. When the game ends, an alert message appears, and then the game restarts.