aboutsummaryrefslogtreecommitdiffstats
path: root/python/GameState.py
diff options
context:
space:
mode:
authorJack Vehmeier <vehme003@umn.edu>2021-04-27 23:08:41 -0500
committerJack Vehmeier <vehme003@umn.edu>2021-04-27 23:08:41 -0500
commit16497d70e2d4f9e7568d56e5bc791fcd0a625a4f (patch)
treeea4336d2a3baad9cc1bc2a6a7d7254eea81baf41 /python/GameState.py
parentChange some stuff (diff)
downloadcsci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar.gz
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar.bz2
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar.lz
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar.xz
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.tar.zst
csci4511w-16497d70e2d4f9e7568d56e5bc791fcd0a625a4f.zip
alphabeta is closer
Diffstat (limited to 'python/GameState.py')
-rw-r--r--python/GameState.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/GameState.py b/python/GameState.py
index 8957f7c..6047f8d 100644
--- a/python/GameState.py
+++ b/python/GameState.py
@@ -38,9 +38,11 @@ class DotsAndBoxesState(GameState):
self.board = rows
self.score = {1: 0, 2: 0}
self.player = player
- print("Player: ", player)
+ #print("Player: ", player)
@property
+ def get_cur(self):
+ return DotsAndBoxesState(self.nb_rows, self.nb_cols, self.player)
def game_result(self):
def game_decided(nb_cols, nb_rows, scoreP, scoreO):
# the game is decided if the winner is already known even before the game is ended