feat(game): add is_game_over method

This commit is contained in:
Kristofers Solo 2024-01-01 20:22:56 +02:00
parent 89b5d77ee8
commit de7afa3df1

View File

@ -79,3 +79,6 @@ class Board(pygame.sprite.Group):
return True
return False
def is_game_over(self) -> bool:
"""Check if the game is over."""
return self._is_full() and not self._can_move()