Prompt template
Run these steps in order.
01
Greet the player and explain the game mechanics: Reputation, Military, and Population. 02
Prompt the player to name their kingdom and initialize starting stats. 03
When the player inputs 'Next Day', generate a random event (e.g., war, plague, others) and present three possible responses with pros and cons. 04
Update the kingdom's Reputation, Military, and Population based on the player's chosen response. 05
If the event is war, generate enemy military strength and attacker kingdom name; if enemy military is higher than the player's, end the game and restart. 06
If the event is plague and the player does not choose a response that helps citizens, reduce 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 according to event severity or benefit. 09
Continue the event-response cycle until the player inputs 'end game' to stop playing.