From 3dcd10025a42ec74ae3f9a5c80617993537e6570 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 27 Apr 2021 14:01:36 -0500 Subject: Refactor min to be like max --- python/alphaBeta.py | 4 ++-- 1 file 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: -- cgit v1.2.3