You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# High score should never be reset. #Because the high score should never be reset, we initialize high_score in __init__() rather than in reset_stats().
self.high_score = 0
def reset_stats(self):
"""Initialize statistics that can change during the game."""
self.ships_left = self.ai_settings.ship_limit
self.score = 0 #To reset the score each time a new game starts, we initialize score in reset_stats() rather than __init__().