Sure! Here's an example of a simple math game implemented as a single HTML file:
Math Game
Click on the correct symbol for the equation!
+
-
×
÷
In this game, random equations are generated and displayed to the user. The user needs to click on the correct symbol corresponding to the equation's operator (+, -, ×, or ÷). If the answer is correct, "Correct!" will be displayed in green, and if the answer is wrong, "Wrong answer!" will be displayed in red.
After a short delay, a new equation is generated and the process continues. The game will run immediately when the HTML file is opened in a browser or on a smartphone.