Sure, here's an example of a simplified text-based president game where the objective is to save your country as the president. This implementation uses JavaScript and is enclosed in script tags within a single HTML file:
Welcome to the President Game!
Loading game...
In this game, the player takes on the role of a president and has to make decisions to save their country. Each turn, random events occur, such as economic crises, natural disasters, or successful policies. The player's cash, reputation, and population are affected accordingly. The game continues for the inputted number of turns, and if any of the game over conditions are met (cash, reputation, or population reaching zero), the game ends.
Please note that this is a simplified example, and a real president game would typically involve more complex gameplay and mechanics.