aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJack Vehmeier <vehme003@umn.edu>2021-04-27 11:32:47 -0500
committerJack Vehmeier <vehme003@umn.edu>2021-04-27 11:32:47 -0500
commit361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d (patch)
tree2a9035646350de363af3beb4816b744c62a993e1 /python
parentattempted to redo AB pruning completely (diff)
downloadcsci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar.gz
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar.bz2
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar.lz
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar.xz
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.tar.zst
csci4511w-361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d.zip
changed the get move to minimax
Diffstat (limited to 'python')
-rw-r--r--python/agent_AB.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/agent_AB.py b/python/agent_AB.py
index f8cab77..4725917 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.get_next_move(self.game_state, time_allowed=self.timelimit)
+ r, c, o = self.controller.miniMax(self.game_state, 3)
return r, c, o
def end_game(self):