Skip to content

Commit

Permalink
feat: added demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Prokhorikhin committed Apr 30, 2024
1 parent c72ebe8 commit 3452372
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions demo.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion src/game/tetris.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from src.game.block import Block

DEMO_SLEEP = 0.05
DEMO_SLEEP = 0


class Action(Enum):
Expand Down

0 comments on commit 3452372

Please sign in to comment.