Prompt: Make a snake game that I can add to a classroom website as html
Prompt: Write HTML code for a fully functional snake game that runs directly in a browser. The game should include:
- A visible score display that updates dynamically as the player eats food.
- A "Start Game" and "Restart Game" button, allowing the player to play again without refreshing the page.
- A clear game-over message when the snake collides with itself or a wall.
- Smooth snake movement controlled by arrow keys. But it shouldn't move the screen as well.
- Clean, readable code with comments explaining key parts (game loop, input handling, collision detection, restart logic).