aboutsummaryrefslogtreecommitdiffstats
path: root/python/alphaBeta.py
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-26 14:52:40 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-26 15:03:24 -0500
commitc4e01e7d1d6f670410a416227b70d2950451f68a (patch)
tree39ded728d30ebf5f73d2053c546bc3972c501b84 /python/alphaBeta.py
parentAdd debug configs, (diff)
downloadcsci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar.gz
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar.bz2
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar.lz
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar.xz
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.tar.zst
csci4511w-c4e01e7d1d6f670410a416227b70d2950451f68a.zip
Start work on AB
Diffstat (limited to 'python/alphaBeta.py')
-rw-r--r--python/alphaBeta.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/alphaBeta.py b/python/alphaBeta.py
index 31fa578..8e041fe 100644
--- a/python/alphaBeta.py
+++ b/python/alphaBeta.py
@@ -1,3 +1,9 @@
+from GameState import GameState
+class GameController(object):
+ def get_next_move(self, state):
+ # when you get a new move, it is assumed that the game is not ended yet
+ assert state.get_moves()
+
def alpha_beta(node, alpha, beta):