Sure! Here's a simple game that meets your requirements. It's an HTML file containing JavaScript code enclosed in script tags. It's designed to be played on a smartphone using pictograms.
Number Game
Click the numbers going by 2 to win. Avoid incorrect numbers or you'll lose hearts. Touch an incorrect number after losing all hearts to die.
♥
♥
♥
When you open the above code in a web browser, you'll see a game titled "Number Game" along with instructions. There are three numbers displayed: 1, 3, and 4. You need to click on numbers in a pattern. By following the pattern, you must click the number going up by 2 each time to win. If you touch an incorrect number, the background color will turn red, indicating a wrong choice. Each incorrect selection will remove a heart. If you touch an incorrect number after losing all three hearts, you'll lose the game. If you successfully click all numbers according to the pattern, you'll win the game.
I hope you enjoy playing the game! If you have any questions, feel free to ask.