mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
feat(game): add Menu surface / main window
This commit is contained in:
7
main.py
7
main.py
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user