Here's an example of a simple game implemented as a single HTML file using JavaScript:
Picture Guessing Game
This game is a simple picture guessing game where the player needs to type the correct pictogram (represented by emojis) into an input field to win. The random pictogram is displayed and the player's guess is compared to it when the "Guess" button is clicked. The result is displayed below the input field.