Wargame_campaign_app/cli/round_menu.py

35 lines
938 B
Python
Raw Permalink Normal View History

2025-12-19 12:18:35 +01:00
def round_menu(data, war, campaign, rnd):
while True:
print(f"\n=== Round {rnd['number']} ===")
print("1. Enter choices and pairing")
print("2. Enter battle results")
print("3. Finish round")
print("4. Edit/Delete round")
print("0. Back")
choice = input("> ").strip()
if choice == "1":
enter_choices(data, war, campaign, rnd)
elif choice == "2":
enter_battle_results(data, war, campaign, rnd)
elif choice == "0":
return
def enter_choices(data, war, campaign, rnd):
print("Entering choices (placeholder)")
# later:
# - list campaign participants
# - input primary / secondary sector
# - store in rnd["choices"]
def enter_battle_results(data, war, campaign, rnd):
print("Entering battle results (placeholder)")
# later:
# - list battles
# - select winner
# - apply scoring