From 9a187cc3ed2cc8775d50ec6349fe138656bfb7e5 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 15 Apr 2022 18:12:53 +0200 Subject: [PATCH] More bugs smashed --- ultimatetictactoe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ultimatetictactoe.py b/ultimatetictactoe.py index 8375db5..cbfe71a 100644 --- a/ultimatetictactoe.py +++ b/ultimatetictactoe.py @@ -99,7 +99,9 @@ class TTTState(State): return game_won == 'X' def checkDraw(self): - return len(self.getAvaibleActions())==0 + for act in self.getAvaibleActions(): + return False # at least one action avaible + return True def __str__(self): state = self.board