MapGame.py
def randomize(self, bases=None, stars=None, aliens=None)->None:
        '''
        Randomly place the inventoried items into the map.
        If no bases ot aliens are specified, a random number
        will be selected. Stars are not required. Not having 
        any stars is ok.
        '''
        if not aliens:
            aliens = random.randint(5, 10)
        if not bases:
            bases = random.randint(2, 4)
        self.game_starbases = bases
        self.game_klingons = aliens
        self.game_stars = stars
        self.init()
        takers = bases, stars, aliens
        while takers:
            for lrs in self._map:
                takers = self.place(takers)
                if not takers:
                    break

        Randomly place the inventoried items into the map.
        If no bases ot aliens are specified, a random number
        will be selected. Stars are not required. Not having 
        any stars is ok.
        
Randomly place the inventoried items into the map.
If no bases ot aliens are specified, a random number
will be selected. Stars are not required. Not having
any stars is ok.
Randomly place the inventoried items into the map . If no bases ot aliens are specified a random number will be selected . Stars are not required . Not having any stars is ok .
def randomize(self, bases=None, stars=None, aliens=None)->None:
        if not aliens:
            aliens = random.randint(5, 10)
        if not bases:
            bases = random.randint(2, 4)
        self.game_starbases = bases
        self.game_klingons = aliens
        self.game_stars = stars
        self.init()
        takers = bases, stars, aliens
        while takers:
            for lrs in self._map:
                takers = self.place(takers)
                if not takers:
                    break
def randomize ( self , bases = None , stars = None , aliens = None ) -> None : if not aliens : aliens = random . randint ( 5 , 10 ) if not bases : bases = random . randint ( 2 , 4 ) self . game_starbases = bases self . game_klingons = aliens self . game_stars = stars self . init ( ) takers = bases , stars , aliens while takers : for lrs in self . _map : takers = self . place ( takers ) if not takers : break
Randomly place the inventoried items into the map.
Randomly place the inventoried items into the map .
'''
        Randomly place the inventoried items into the map.
        If no bases ot aliens are specified, a random number
        will be selected. Stars are not required. Not having 
        any stars is ok.
        '''
self
bases
stars
aliens