diff options
author | Jack Vehmeier <vehme003@umn.edu> | 2021-04-27 11:32:47 -0500 |
---|---|---|
committer | Jack Vehmeier <vehme003@umn.edu> | 2021-04-27 11:32:47 -0500 |
commit | 361ab6cdddf84d1bcdd78ba32df1082f2bf4fd2d (patch) | |
tree | 2a9035646350de363af3beb4816b744c62a993e1 | |
parent | attempted to redo AB pruning completely (diff) | |
download | csci4511w-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 '')
-rw-r--r-- | python/agent_AB.py | 2 |
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): |