aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-27 14:01:36 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-27 14:01:36 -0500
commit3dcd10025a42ec74ae3f9a5c80617993537e6570 (patch)
tree6dfe5428ff75422b4ca1a3b82cef64e2ba69d291 /python
parentGet it to function (diff)
downloadcsci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar.gz
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar.bz2
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar.lz
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar.xz
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.tar.zst
csci4511w-3dcd10025a42ec74ae3f9a5c80617993537e6570.zip
Refactor min to be like max
Diffstat (limited to '')
-rw-r--r--python/alphaBeta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/alphaBeta.py b/python/alphaBeta.py
index 5fe06c8..6ac0400 100644
--- a/python/alphaBeta.py
+++ b/python/alphaBeta.py
@@ -90,7 +90,7 @@ class AlphaBeta(object):
if Ply_num == 0:
return State.CurrentScore
- possiblemoves=State.get_moves()
+ possiblemoves = State.Current.get_moves()
for x in possiblemoves:
if (x[0],x[1],x[2]) not in State.children:
State.Make(x[0],x[1],x[2])
@@ -99,7 +99,7 @@ class AlphaBeta(object):
i = 0
j = 0
for k, z in State.children.items():
- Result = Algo.Maximum(z, Ply_num - 1, Minimum_Score)
+ Result = AlphaBeta.Maximum(z, Ply_num - 1, Minimum_Score)
if Minimum_Score > Result:
Minimum_Score = Result
if Result < Beta: