Sure! Here's an example of a simple Pac-Man game implemented as a single HTML file using JavaScript:
Pac-Man Game
To use the Pac-Man game, save the code above into a file with an .html extension and open it in a web browser. The game board will be displayed, and you can move Pac-Man using the arrow keys on your keyboard. The Pac-Man character will move within the game board, and you can see its updated position on the board.