aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-28 17:33:38 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-28 17:33:38 -0500
commitd18bb67b5122481283baafc71534de6f296c75a9 (patch)
tree4d3f632a7873a7f4b7de673c90dcdb3a7829b150
parentRevert "Double time" (diff)
downloadcsci4511w-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
-rw-r--r--python/MCTS.py4
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)