Sure, here's a simple implementation of Pac-Man as a single HTML file using JavaScript:
This implementation creates a simple Pac-Man game board represented by a 2D array. The user can control Pac-Man's movement using the arrow keys on a smartphone. Each movement updates the game board and re-renders it on the screen.
Please note that this implementation is a basic framework that only allows Pac-Man to move and doesn't include the full gameplay mechanics and features of the original Pac-Man game. It can serve as a starting point for further development.