Exemple #1
0
 def _check_game_over(self):
     userWon, canMove = self._check_tiles()
     won = newHighScore = None
     if userWon:
         won = True
         if self.score > self.highScore:
             self.highScore = self.score
             newHighScore = True
     elif not canMove:
         won = newHighScore = False
     if won is not None:
         GameOver.Window(self, self.score, won, newHighScore)
         self.new_game()
     else:
         self.update_score()