Sure, here's a sample implementation of the popular game 2048 as a single HTML file using JavaScript:
To play the game, save the above code as a `.html` file and open it in a web browser. You can use the arrow keys to move the tiles and try to reach the 2048 tile. The game will display the current score and notify you when the game is over.