arch & placeholders

This commit is contained in:
Maxime Réaux 2025-12-19 09:56:45 +01:00
parent a3b16ae58a
commit 57543e139a
10 changed files with 233 additions and 2 deletions

21
main.py Normal file
View file

@ -0,0 +1,21 @@
from storage.repository import load_data, save_data
from cli.menu import main_menu
def main():
data = load_data()
while True:
choice = main_menu()
if choice == "1":
print("Wars:")
for war in data["wars"]:
print(f"- {war['name']}")
elif choice == "5":
save_data(data)
print("Goodbye.")
break
if __name__ == "__main__":
main()