Sure, here's a simple implementation of the classic game Pac-Man as a single HTML file using JavaScript and enclosed in script tags:
Please note that this implementation only covers the basic movement of Pac-Man using arrow keys. You can customize and enhance the game further based on your requirements and preferences.