Sure! Here's an example of a simple merge game implemented as a single HTML file with JavaScript:
Merge Game
This implementation creates a 4x4 game board where you can swipe or use arrow keys to merge tiles. The goal is to reach the 2048 tile. Each time you make a move, a new tile with value 2 or 4 will appear randomly on the board. When no more moves are possible, the game ends and the final score is displayed.