Here's an example implementation of the game in a single HTML file with JavaScript:
This is just a simple text-based implementation of the game. You can further enhance the game by adding pictograms, user interface elements, more interactive features, etc. Let me know if you need further assistance in building the game!