diff --git a/demo.py b/demo.py new file mode 100644 index 0000000..e8ac8d9 --- /dev/null +++ b/demo.py @@ -0,0 +1,9 @@ +from src.agents.agent_factory import create_agent +from src.game.tetris import Tetris +from src.game.TetrisGameManager import * + +if __name__ == "__main__": + board = Tetris() + agent = create_agent("heuristic") + manager = TetrisGameManager(board) + manager.startDemo(agent) \ No newline at end of file diff --git a/src/game/tetris.py b/src/game/tetris.py index a6dfb10..626cf62 100644 --- a/src/game/tetris.py +++ b/src/game/tetris.py @@ -7,7 +7,7 @@ from src.game.block import Block -DEMO_SLEEP = 0.05 +DEMO_SLEEP = 0 class Action(Enum):