aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-27 14:33:45 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-27 14:33:45 -0500
commit16d24ef8861b36b4b14c667b8a226d9bab2d6067 (patch)
tree6214dc13769b56881cad51cf3f9ef64a42bdad64 /python
parentAdd AB to the test suite (diff)
downloadcsci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar.gz
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar.bz2
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar.lz
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar.xz
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.tar.zst
csci4511w-16d24ef8861b36b4b14c667b8a226d9bab2d6067.zip
Get rid of super slow deepcopy
Diffstat (limited to 'python')
-rw-r--r--python/alphaBeta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/alphaBeta.py b/python/alphaBeta.py
index 52ede74..93c8b0b 100644
--- a/python/alphaBeta.py
+++ b/python/alphaBeta.py
@@ -26,7 +26,7 @@ class ABNode(object): # A class for Node related operations
self.CurrentScore = self.Current.score[2]-self.Current.score[1]
def Make(self, r,c,o): # Function for generating a child node
- self.children[(r,c,o)] = ABNode(deepcopy(self.Current))
+ self.children[(r,c,o)] = ABNode(self.Current)
move=(r,c,o)
self.children[(r,c,o)].Current.play_move(move)
self.children[(r,c,o)].update_score()