#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2018/12/4 11:51
# @Author  : zsj
# @File    : game_stats.py
# @Description:

class GameStats():
    """追踪游戏的统计信息"""
    def __init__(self, ai_settings):
        """初始化统计信息"""
        self.ai_settings = ai_settings
        self.reset_stats()
        self.game_active = False

    def reset_stats(self):
        """初始化在游戏运行期间可能变化的统计信息"""
        self.ships_left = self.ai_settings.ship_limit
        #游戏得分
        self.score = 0
        self.level = 1