Sure, here's an example of a simple text-based game implemented as a single HTML file using JavaScript:
In this game, you start at your home and need to complete a series of actions to find the code to unlock the vault and retrieve the shovel. You can perform actions by typing them into the prompt. The game will prompt you for the next action based on your current location2 and progress in the game.
Note: This is a basic example to give you an idea of how the game can be implemented. You can further enhance it with more location2s, actions, and visual elements using images or pictograms.