feat(game): add Menu surface / main window

This commit is contained in:
Kristofers Solo
2024-01-03 23:33:30 +02:00
parent d299934e7c
commit 3b51a9a62f
11 changed files with 122 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
import argparse
from loguru import logger
from utils import BASE_PATH, Config
from utils import BASE_PATH, CONFIG
def pos_int(string: str) -> int:
@@ -61,9 +61,9 @@ logger.add(
@logger.catch
def main(args: argparse.ArgumentParser) -> None:
if args.debug:
Config.log_level = "debug"
CONFIG.log_level = "debug"
elif args.verbose:
Config.log_level = "info"
CONFIG.log_level = "info"
import ai
import game
@@ -72,6 +72,7 @@ def main(args: argparse.ArgumentParser) -> None:
ai.log.debug("Training the AI")
else:
game.log.debug("Running the game")
game.Menu().run()
if __name__ == "__main__":