Sure! Here's an example of a simple game implemented as a single HTML file using JavaScript:
In this game, you start with a list of initial heroes. When you click the "Attack" button, a random hero is selected and removed from the hero list. The name and power of the defeated hero are displayed on the screen using the `displayHeroDialogue` function.
You can continue clicking the "Attack" button to discover new heroes until all the heroes are defeated. Once all the heroes are defeated, the button will be disabled and display "Game Over".
Please note that this is a simple implementation just to demonstrate the idea of the game. You can modify and enhance it according to your specific requirements.