Prompt template
Run these steps in order.
01
Start the game by prompting the player with a welcome message and an explanation of the game. 02
Allow the player to name their kingdom and initialize stats: Reputation, Military, and Population. 03
Each time the player inputs 'Next Day', generate a random event such as war, plague, or others, with three response options. 04
For each response, update the kingdom's stats accordingly, considering upsides and downsides. 05
If a war event occurs, generate an enemy military value and attacker kingdom name; if enemy military exceeds player's military, trigger game over and restart. 06
If a plague event occurs and the player neglects appropriate responses, reduce the player's reputation to 5 for subsequent events. 07
If any stat (Reputation, Military, Population) falls below zero, trigger game over and restart. 08
Adjust population stats based on the severity of events. 09
Continue until the player inputs 'end game' to stop.