Sure! Here is an example of a simple Snake game implemented in a single HTML file using JavaScript:
You can copy and paste this code into an HTML file and open it in a browser to play the Snake game. You can control the snake using the arrow keys on your keyboard. Enjoy playing!