menu tree mockup

This commit is contained in:
Maxime Réaux 2025-12-19 12:18:35 +01:00
parent 57543e139a
commit 02e7221149
7 changed files with 145 additions and 23 deletions

34
cli/round_menu.py Normal file
View file

@ -0,0 +1,34 @@
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