MapGame.py
def enterprise_in(self, dest=None):
        ''' 
        Place the ENTERPRISE at the destination, else a 
        random one.
        
        Will raise an ErrorEnterpriseCollision, upon same.

        Returns the final x, y location upon success 
        '''
        area = self.pw_area()
        if not dest:
            return area.place_glyph(Glyphs.ENTERPRISE)
        berror = False
        if area:
            for p in area._pieces:
                if p.xpos == dest.xpos and p.ypos == dest.ypos:
                    pos = area.place_glyph(Glyphs.ENTERPRISE)
                    berror = p.glyph
            pos = area.place_glyph(Glyphs.ENTERPRISE, dest)
            if berror:
                raise ErrorEnterpriseCollision(berror)
            if pos:
                return pos
        return False
 
        Place the ENTERPRISE at the destination, else a 
        random one.
        
        Will raise an ErrorEnterpriseCollision, upon same.

        Returns the final x, y location upon success 
        
Place the ENTERPRISE at the destination, else a
random one.

Will raise an ErrorEnterpriseCollision, upon same.

Returns the final x, y location upon success
Place the ENTERPRISE at the destination else a random one . Will raise an ErrorEnterpriseCollision upon same . Returns the final x y location upon success
def enterprise_in(self, dest=None):
        area = self.pw_area()
        if not dest:
            return area.place_glyph(Glyphs.ENTERPRISE)
        berror = False
        if area:
            for p in area._pieces:
                if p.xpos == dest.xpos and p.ypos == dest.ypos:
                    pos = area.place_glyph(Glyphs.ENTERPRISE)
                    berror = p.glyph
            pos = area.place_glyph(Glyphs.ENTERPRISE, dest)
            if berror:
                raise ErrorEnterpriseCollision(berror)
            if pos:
                return pos
        return False
def enterprise_in ( self , dest = None ) : area = self . pw_area ( ) if not dest : return area . place_glyph ( Glyphs . ENTERPRISE ) berror = False if area : for p in area . _pieces : if p . xpos == dest . xpos and p . ypos == dest . ypos : pos = area . place_glyph ( Glyphs . ENTERPRISE ) berror = p . glyph pos = area . place_glyph ( Glyphs . ENTERPRISE , dest ) if berror : raise ErrorEnterpriseCollision ( berror ) if pos : return pos return False
Place the ENTERPRISE at the destination, else a
random one.
Place the ENTERPRISE at the destination else a random one .
''' 
        Place the ENTERPRISE at the destination, else a 
        random one.
        
        Will raise an ErrorEnterpriseCollision, upon same.

        Returns the final x, y location upon success 
        '''
self
dest