From d18bb67b5122481283baafc71534de6f296c75a9 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 28 Apr 2021 17:33:38 -0500 Subject: Double both iterations and time --- python/MCTS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/MCTS.py b/python/MCTS.py index 677d994..91cd41c 100644 --- a/python/MCTS.py +++ b/python/MCTS.py @@ -109,7 +109,7 @@ class MCTSGameController(GameController): move = choice(tuple(node.pending_moves)) return node.expand_move(move) - def simulate(self, state, max_iterations=1000): + def simulate(self, state, max_iterations=2000): state = deepcopy(state) move = state.get_random_move() @@ -129,7 +129,7 @@ class MCTSGameController(GameController): node.score += node.get_score(result) node = node.parent - def get_next_move(self, state, time_allowed=1.0): + def get_next_move(self, state, time_allowed=2.0): super(MCTSGameController, self).get_next_move(state) self.root_node = MCTSNode(state) -- cgit v1.2.3