diff options
author | Matt Strapp <strap012@umn.edu> | 2021-04-28 17:33:38 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2021-04-28 17:33:38 -0500 |
commit | d18bb67b5122481283baafc71534de6f296c75a9 (patch) | |
tree | 4d3f632a7873a7f4b7de673c90dcdb3a7829b150 /python | |
parent | Revert "Double time" (diff) | |
download | csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar.gz csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar.bz2 csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar.lz csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar.xz csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.tar.zst csci4511w-d18bb67b5122481283baafc71534de6f296c75a9.zip |
Double both iterations and time
Diffstat (limited to 'python')
-rw-r--r-- | python/MCTS.py | 4 |
1 files 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) |