-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.py
More file actions
17 lines (14 loc) · 701 Bytes
/
run.py
File metadata and controls
17 lines (14 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from MonteScene.ProposalGame import ProposalGame
from MonteScene.MonteCarloTreeSearch import MCTSLogger
from MonteScene.MonteCarloTreeSearch import MonteCarloSceneSearch
if __name__ == '__main__':
# Create Game
# TODO Abstract Class. Define your own Game inherited from this and implement the abstract methods
game = ProposalGame()
# Create Logger
mcts_logger = MCTSLogger(game) # TODO Abstract Class. Define your own Logger inherited from this and implement the abstract methods
# Create MCTS
# run MCTS
mcts = MonteCarloSceneSearch(game, mcts_logger=mcts_logger, settings=None)
mcts.run()
# mcts_logger.create_gif()