aboutsummaryrefslogtreecommitdiffstats
path: root/python/alphaBeta.py
diff options
context:
space:
mode:
authorJack Vehmeier <vehme003@umn.edu>2021-04-28 15:51:33 -0500
committerJack Vehmeier <vehme003@umn.edu>2021-04-28 15:51:33 -0500
commit216e2e9a1a5ada9d224afaff1441defd0fb455f5 (patch)
tree496b715da0edb24fe3579f8df7e8d4baa5541e64 /python/alphaBeta.py
parentalphabeta is closer (diff)
downloadcsci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar.gz
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar.bz2
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar.lz
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar.xz
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.tar.zst
csci4511w-216e2e9a1a5ada9d224afaff1441defd0fb455f5.zip
fixed
Diffstat (limited to '')
-rw-r--r--python/alphaBeta.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/alphaBeta.py b/python/alphaBeta.py
index 5d7b932..aab2a2a 100644
--- a/python/alphaBeta.py
+++ b/python/alphaBeta.py
@@ -26,7 +26,8 @@ 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(self.Current.get_cur)
+ lit=deepcopy(self.Current)
+ self.children[(r,c,o)] = ABNode(lit)
move=(r,c,o)
self.children[(r,c,o)].Current.play_move(move)
self.children[(r,c,o)].update_score()