Sure! Here's an example of a simple text-based game called "The Uncharted Quest" implemented in a single HTML file with JavaScript:
In this game, the player is prompted to make choices and navigate through different scenarios such as encountering enemies, finding items, and continuing exploration. The game ends when the player either defeats an enemy or loses all their health. The game logic is implemented using JavaScript, and the game starts automatically when the page is loaded. Note that the gameplay can be customized and expanded further based on the requirements and desired features.