Sure! Here's an example of an interactive game implemented as a single HTML file with JavaScript, enclosed in script tags:
Welcome!
🔨
In this game, you start by seeing a welcome message and a hammer emoji. The objective is to click on the hammer emoji twice to unlock a secret message. Each time the hammer is clicked, the inner text of the hammer changes to a "
💥" emoji. Once the hammer is clicked twice, the message updates to congratulate the player and reveal the secret message.
You can copy the entire code and save it as an HTML file on your smartphone or any other device to play the game.