Sure! Here's an example implementation of a game where a group of mercenaries fights to free the population from the control of an overlord. The game will be played on a smartphone and will use pictograms. The HTML file will contain JavaScript code enclosed in script tags. Please note that this is a simplified example and not a fully-fledged game.
In this game, the initial game board is displayed with pictograms representing the population (citizens) and the overlord. When the game starts, the mercenaries launch an attack by calling the `attack()` function. If there are mercenaries and the overlord present, one citizen and one overlord will be removed from the game board. The game will continue until either all the mercenaries or the overlord are defeated. In both cases, an alert message will be displayed to indicate the outcome of the game.