<reponame>Gadom654/EricMatthesBook<filename>Alien_invasion/game_stats.py<gh_stars>0
class GameStats():
	"""Statistical data monitoring in game "AlienInvasion"."""
	
	def __init__(self, ai_settings):
		"""Initialization statistical data."""
		self.ai_settings = ai_settings
		self.reset_stats()
		self.game_active = False

		self.high_score = 0


	def reset_stats(self):
		"""Initialization of statistical data to game"""
		self.ships_left = self.ai_settings.ship_limit
		self.score = 0
		self.level = 1
class GameStats():
	"""Statistical data monitoring in game "AlienInvasion"."""
	
	def __init__(self, ai_settings):
		"""Initialization statistical data."""
		self.ai_settings = ai_settings
		self.reset_stats()
		self.game_active = False

		self.high_score = 0


	def reset_stats(self):
		"""Initialization of statistical data to game"""
		self.ships_left = self.ai_settings.ship_limit
		self.score = 0
		self.level = 1
Statistical data monitoring in game "AlienInvasion". Initialization statistical data. Initialization of statistical data to game