As an AI language model, I can help you create a simple game using JavaScript enclosed in script tags within an HTML file. Here's an example of a number-based game inspired by the popular 15 puzzle:
This HTML file creates a 15 puzzle game where you need to rearrange the numbers from 1 to 15 in ascending order by clicking on adjacent tiles. The game checks if the puzzle is solved after each move and displays an alert when the puzzle is successfully completed.
You can copy and save the above code as an HTML file, open it in a web browser (preferably on a smartphone for a better touch-based gaming experience), and play the game by clicking on the number tiles.