diff options
author | Matt Strapp <strap012@umn.edu> | 2021-04-27 20:52:51 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2021-04-27 20:52:51 -0500 |
commit | 85d2dc7018bd8373dfee3ce885eebe148c361edf (patch) | |
tree | d64d0b4c995aee33035c11bf94cd6502880b8891 /python | |
parent | Get rid of super slow deepcopy (diff) | |
download | csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar.gz csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar.bz2 csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar.lz csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar.xz csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.tar.zst csci4511w-85d2dc7018bd8373dfee3ce885eebe148c361edf.zip |
Change some stuff
Diffstat (limited to 'python')
-rw-r--r-- | python/MCTS.py | 1 | ||||
-rw-r--r-- | python/alphaBeta.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/python/MCTS.py b/python/MCTS.py index cf67f48..677d994 100644 --- a/python/MCTS.py +++ b/python/MCTS.py @@ -132,7 +132,6 @@ class MCTSGameController(GameController): def get_next_move(self, state, time_allowed=1.0): super(MCTSGameController, self).get_next_move(state) - # Create new tree (TODO: Preserve some state for better performance?) self.root_node = MCTSNode(state) iterations = 0 diff --git a/python/alphaBeta.py b/python/alphaBeta.py index 93c8b0b..fb89ab0 100644 --- a/python/alphaBeta.py +++ b/python/alphaBeta.py @@ -47,8 +47,8 @@ class AlphaBeta(object): for x in possiblemoves: if (x[0],x[1],x[2]) not in start.children: start.Make(x[0],x[1],x[2]) - if Ply_num < 2: - return (i, j) + # if Ply_num < 2: + # return (i, j) Minimum_Score = 1000 r = 0 |