Sure, here's an example of a simple implementation of the classic Snake game in a single HTML file using JavaScript:
This implementation creates a game board with a green snake represented by blocks and a red food item. The player controls the snake using the arrow keys to eat the food and grow longer. The game ends if the snake collides with the boundaries of the game board or with itself, and it restarts automatically.