Sure, below is an example of a simple maze game implemented as a single HTML file. The player controls a person and tries to avoid the moving enemy by hiding in closets. The game uses pictograms for visualization.
To play the game, you can copy the code above and save it as an HTML file, then open the file in a web browser (preferably on a smartphone). The maze will be displayed, and you can control the person's movement using the arrow keys. The goal is to avoid getting caught by the moving enemy by hiding in the closets represented by the blue cells. If you collide with the enemy, the game is over and you will receive an alert. You can reset the game and start again by refreshing the page.