mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
refactor(ai)
This commit is contained in:
7
main.py
7
main.py
@@ -61,14 +61,13 @@ def main(args: argparse.ArgumentParser) -> None:
|
||||
elif args.verbose:
|
||||
CONFIG.log_level = "info"
|
||||
|
||||
# import ai
|
||||
import ai
|
||||
import game
|
||||
|
||||
if args.train is not None:
|
||||
# ai.log.debug("Training the AI")
|
||||
# # ai.train(*args.train)
|
||||
ai.log.debug("Training the AI")
|
||||
ai.train(*args.train)
|
||||
# game.Menu(GameMode.AI_TRAINING).run()
|
||||
pass
|
||||
else:
|
||||
game.log.debug("Running the game")
|
||||
game.Main(GameMode.PLAYER).run()
|
||||
|
||||
Reference in New Issue
Block a user