Commits

César Bustíos committed d1f615c

Game over message must be before event.wait in order to display correctly

Comments (0)

Files changed (1)

         if new_game:
             new_game_options = display_new_game_settings()
 
+        # Check if game is over
+        if all_matched(board['revealed']):
+            display_game_over_message()
+
         clicked = False
         pygame.display.update()
 
                 board = generate_board(logos_path, False)
                 new_game = False
 
-        # Check if game is over
-        if all_matched(board['revealed']):
-            display_game_over_message()
-
     pygame.quit()