Sure, here's a simple text-based game about winning an election implemented as a single HTML file using JavaScript.
In this game, the objective is to win the election by gaining at least 10,000 votes and managing your campaign funds wisely. You can choose to hold rallies, run TV ads, hold fundraising events, or check the current status of your campaign. The game will continue until either you reach 10,000 votes or run out of campaign funds. Winning or losing will be determined based on these conditions.