Sure, here's a simple implementation of Pac-Man game in a single HTML file using JavaScript:
To play the game, you can save the above code in a .html file and open it in your web browser. The game board is represented by a square div, and the Pac-Man character is represented by a yellow circle. You can use the arrow keys on your keyboard to move Pac-Man around the game board.