Here is an example of a simple game implemented as a single html file with JavaScript enclosed in script tags:
Simple Game
In this game, the player can move around the game board using the arrow keys. The objective is to avoid collision with the enemy pictogram. If there is a collision, an alert will display "Game Over". You can replace the image sources with pictograms and style the game board as desired.