Sure! Here's a simple number guessing game implemented as a single HTML file using JavaScript:
Number Guessing Game
Guess the number between 1 and 100:
To play the game, you can simply copy and paste the above code into a new HTML file, save it with a `.html` extension, and open it in your web browser (on a smartphone or computer). The game will prompt you to enter a number between 1 and 100 and provide feedback on whether your guess is too high or too low until you guess the correct number. Once you guess it correctly, the game will display the number of attempts it took you to guess the correct number.