Sure! Here's an example of a game that meets your requirements. It's a simple text-based maze game implemented in a single HTML file with JavaScript.
This game represents a neighborhood map with the house as the starting point and the forest as the destination. The player can move in four directions: north, south, west, and east. The game verifies if the player has reached the forest by checking the current location against the destination.