Sure! Here's a simple example of a game implemented in a single HTML file using JavaScript:
In this game, players need to click on the correct pictogram that is randomly generated on the canvas. If they click on the correct one, they win the game. If they click on the wrong pictogram or they lose once, they will get an alert message indicating that they lost. The game continues until they win or lose once.