Sure! Here's an example of a zombie apocalypse text game implemented as a single HTML file using JavaScript:
To play the game, you can open the HTML file on a smartphone or in a web browser. The game will prompt you for your name and then start the zombie apocalypse text game. You can choose to attack or run from the zombie, and the game will simulate the battles until either you or the zombie loses all health points. The game will display the progress and outcome in the console. Enjoy!