(self)
Increases energy at and around (adjacent position) for each plant.
        Increase in energy is equal to the eff(?) value of each the plant.
Increases energy at and around (adjacent position) for each plant.
        Increase in energy is equal to the eff(?) value of each the plant.
Increases energy at and around ( adjacent position ) for each plant . Increase in energy is equal to the eff ( ? ) value of each the plant .
def run_plants(self):
        ''' Increases energy at and around (adjacent position) for each plant.
        Increase in energy is equal to the eff(?) value of each the plant.'''
        for p in self.plant_population:
            (x, y) = p.get_pos()
            for dx in (-1, 0, 1):
                for dy in (-1, 0, 1):
                    adj_x = x + dx
                    adj_y = y + dy
                    if self.energy_map.in_range(adj_x, adj_y):
                        self.energy_map.change(adj_x, adj_y, p.get_eff())
def run_plants ( self ) : for p in self . plant_population : ( x , y ) = p . get_pos ( ) for dx in ( - 1 , 0 , 1 ) : for dy in ( - 1 , 0 , 1 ) : adj_x = x + dx adj_y = y + dy if self . energy_map . in_range ( adj_x , adj_y ) : self . energy_map . change ( adj_x , adj_y , p . get_eff ( ) )