(self, planet)
return self.calculate_distance_between(planet) <= planet.radius + constants.DOCK_RADIUS
Determine whether a ship can dock to a planet

        :param Planet planet: The planet wherein you wish to dock
        :return: True if can dock, False otherwise
        :rtype: bool
Determine whether a ship can dock to a planet
Determine whether a ship can dock to a planet
def can_dock(self, planet):
        """
        Determine whether a ship can dock to a planet

        :param Planet planet: The planet wherein you wish to dock
        :return: True if can dock, False otherwise
        :rtype: bool
        """
        return self.calculate_distance_between(planet) <= planet.radius + constants.DOCK_RADIUS
def can_dock ( self , planet ) : return self . calculate_distance_between ( planet ) <= planet . radius + constants . DOCK_RADIUS