From a7c56cf28f517db428be43a5b0b9d335843bbd6c Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 28 Apr 2021 12:14:20 -0500 Subject: Add a basic repr for an ABNode --- python/alphaBeta.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/alphaBeta.py b/python/alphaBeta.py index 5d7b932..a170914 100644 --- a/python/alphaBeta.py +++ b/python/alphaBeta.py @@ -107,3 +107,8 @@ class AlphaBeta(object): return Result return Minimum_Score + + def __repr__(self): + s="ABNode" + return s + -- cgit v1.2.3 From b3b0cbca79ceaee9f582a30db27903d9dea43232 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 28 Apr 2021 12:14:34 -0500 Subject: Lower CPU requirements for faster runtimes --- python/agent_AB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/agent_AB.py b/python/agent_AB.py index 2357d45..4107156 100644 --- a/python/agent_AB.py +++ b/python/agent_AB.py @@ -27,7 +27,7 @@ class Agent(dba.DotsAndBoxesAgent): self.game_state.play_move(move) def next_action(self): - r, c, o = self.controller.miniMax(self.game_state, 4) + r, c, o = self.controller.miniMax(self.game_state, 3) return r, c, o def end_game(self): -- cgit v1.2.3