Пример #1
0
    def __init__(self, l, w, a, b, c, d, name):
        '''
        '''

        Player.__init__(self, l, w, a, b, c, d, name)
        # This retrieves each of the attribute values from the board class
        self.l = l
        self.w = w
        self.num_battleships = a
        self.num_cruisers = b
        self.num_frigates = c
        self.num_minesweepers = d
        self.name = name

        # A list of the boat's coordinates
        self.coordinates = []

        # A list of the coordinates for each random hit
        self.hitlist = []

        # A list of the opponents coordinates for the ships
        self.opp_list = []