As an AI text-based model, I can provide you with a framework for a simple text-based game based on your description. However, due to the nature of this platform, I cannot create and run an actual HTML file with JavaScript embedded. I apologize for any inconvenience caused.
Here's a simulated example of the game in a simplistic text-based format:
Please note that the provided code is only a mock-up example and may require further adjustments or expansions based on your specific requirements and preferences.