More bugs smashed

This commit is contained in:
Dominik Moritz Roth 2022-04-15 18:12:53 +02:00
parent bc64d679bf
commit 9a187cc3ed

View File

@ -99,7 +99,9 @@ class TTTState(State):
return game_won == 'X' return game_won == 'X'
def checkDraw(self): 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): def __str__(self):
state = self.board state = self.board